Placing Other Categories in the Featured-Section

von Joern am 26. Jan. 2011 | Keine Kommentare

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?

(von: raf_79)

Hier noch 3 weitere Ergebnisse dieses Threads:

Re: Placing Other Categories in the Featured-Section :: Reply by Joern

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…

Re: Placing Other Categories in the Featured-Section :: Reply by raf_79

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 →

Re: Placing Other Categories in the Featured-Section :: Reply by Joern

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…


Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: