Please forgive me if this has already been addressed in the forum.
By following instructions here in the forum, I’ve been able to get 2 featured sections functioning correctly side-by-side on my site. However, I would like to be able to define which categories are pulled in other than ‚Featured‘ only. I have tried changing the category name in the Featured section of the index file to another category name, but it is ignored and a featured article is still pulled in anyway.
If this can be done, how would I achieve this?
Hier noch 3 weitere Ergebnisse dieses Threads:
27. Jan. 2011 (von: Joern)
in Arthemia the query for category Headline is like this:Code:<?php query_posts("showposts=1&category_name=Headline"); ?>If you know the ID of this category (here as sample ID=4) you could use:Code:<?php query_posts("showposts=1&cat=4"); ?>Coming to Featured section, normally like this:Code:<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>this you…
27. Jan. 2011 (von: raf_79)
Yes it did. Thank you! What would I have to do additionally to select which posts to display in a category as opposed to the most recent post as it displays now? Weiterlesen →
28. Jan. 2011 (von: Joern)
check the WordPress Support Forum link I gave you above.you could query by another parameter like author, tag etc, you could just query one or two posts exactly (Post & Page Parameters)you could change the sort order (Order & Orderby…