Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Filter by multiple categories
The tag compares category
(current or specified) against a list of name
s:
<txp:if_category category="apple" name="apple, banana, cherry" /> <!-- yes! -->
So
<txp:if_category name="apple, banana, cherry" />
checks whether the current category is in the list. But there is no current category on /category/apple/banana/
page, as we know.
Offline
Re: Filter by multiple categories
Ah of course. That could probably be clearer in the docs.
*adds it to the never-ending Todo list*
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline