Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Selecting from multiple catagories
I have a feeling this is simple, but I can’t figure it out…
I want to have the most recent five articles listed as a ‘What’s New’ on my front page, but I only want them from three of my catagories. I tried using this removed:
Recent Updates
txp:article_custom form=“welcome-whatnewlist” limit=“5” category=“japan” category=“tech” category=“stuff” sortby=“Posted” sortdir=“desc” excerpted=“n” listform=“welcome-whatnewlist” /
Which does the job except it only pulls articles from the “stuff” category. Whilst looking for a solution I realised this might be better (from Textbook)
txp:recent_articles label=“Latest” limit=“7” break=“br” wraptag=“p” category=“tech” sortby=“Section” sortdir=“desc” /
but it still has the single category problem (I tried just adding more in there).
My question then is how do I state the tag to select the newest stories from selected categories?
Last edited by nanikore (2006-08-12 11:21:17)
Offline
Re: Selecting from multiple catagories
You may need a plugin. Chh_article_custom (but also other plugins: I just use this) let you define category=“japan,tech,stuff”. Comma separated list. Built in tags don’t allow for multiple sections or multiple categories.
Bye
Z-
Offline
Re: Selecting from multiple catagories
Thanks, I’ll take a look and post back if i mess it up!
Last edited by nanikore (2006-08-19 14:37:04)
Offline
Pages: 1