if inside for inside pass not working
-
I’m trying to do that:
[pass global=query fields=tag][for each=tag][if '{TERM}'='{TAG}']<div class="onetag tagselected">[else]<div class="onetag">[/if]<a href="?tag=[each slug]">[each name]</a></div>[/for][/pass]
i.e. using a different class if the tag in the for loop is the same in the URL get request. But it is not working.
What I’m doing wrong?
https://www.ads-software.com/plugins/custom-content-shortcode/
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘if inside for inside pass not working’ is closed to new replies.