shortcode to check the _total
-
Hi
I am trying to show a message if there are no items in a POD CPT, using shortcodes.
So, inside the loop [pods name=”my_cpt”]…[pods], I have tried:
[if field=”_total” value=”0″ compare=”>=”]write a message[/if],
[if field=”_total” value=”0″ compare=”>=”]write a message[/if], or
[if field=”_total_found” value=”0″ compare=”>=”]write a message[/if] and many-many other tries. The message does not appear, even if
{@_total} or {@_total_found} show the correct number, 30.What is the correct method to achieve what I have said?
I have read the documentation here: https://docs.pods.io/displaying-pods/template-tags/if-conditional-tag/#New_in_Pods_28_Special_field_notations which was very clear, but…
The topic ‘shortcode to check the _total’ is closed to new replies.