184.108.40.206. Templates Tab¶
In this tab, you can create templates for the current item. You can use the short codes that are
shown as buttons in this tab. In addition, you can use custom short codes you defined in
Custom Content Selectors for Shortcodes setting. To copy any short code, just click its
button. Then go to the template input and paste it. The short codes must be in [short-codename]
format. For example, if a short code’s name is
wcc-item, then you should enter
use the value of this short code.
When there are more than one template, a random one will be selected for each found item.
220.127.116.11.1. Remove item if it is empty?¶
When you check this, if the item is found to be empty, i.e. an empty string, it will be removed from the results. In other words, it will be treated as if it was not found at all. It will not be included in the results. The templates will not be applied.
Define your templates here. If there are more than one, a random template will be selected. You can use button to test your template.
The test will only replace
[wcc-item] shortcode. So, no need to worry when the other
shortcodes are not replaced in the test results. They will be replaced when crawling the
posts. If you really want to see all shortcodes replaced, then you can use
An example template and its test results can be seen in
Fig. 12.16. You can see that
[wcc-item] short code is
15,003.52 although the original test data is
15. This is because there are
other options configured in Calculations Tab. Those options are applied to the
data before the template is applied. Moreover, you can also observe that
[wcc-main-title] is not
replaced with the post title, because the test does not replace shortcodes other than