S1S2
(S1 S2)
1
I want to enforce a condition such that a certain string of text appears only if the post doesn’t have any category assigned to it.
I tried a few variants of the following, but I don’t think I’m close:
<If taxonomy not_exists>String of Text</If>
Any help would be greatly appreciated. Thank you
julia
(Julia Canzani)
2
I would probably use an If loop condition for this:
<If loop type=taxonomy_term taxonomy=category post=current>
Categories exist
<Else />
No categories exist
</If>
1 Like
S1S2
(S1 S2)
3
It worked, thank you Julia.
1 Like