Re: no double posting! :: Reply by Joern

von Joern am 14. Apr. 2011 | Keine Kommentare

Actually Arthemia has this function built in already. In your index.php under the div id="front-list" you have:


$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>

The part cat=-27,-28 means posts from the two categories with the ID 27 and ID 28 will be excluded due to the minus in front.
Any post you assign to one of these categories will not be shown below. Try this first, if it works you could create a new category for these posts you do not want to see and add the ID of this new category to this …cat=-27,-28,-xx…
There are more ways to exclude posts shown already, but quite difficult to setup, see:
Multiple Loops in Action on http://codex.wordpress.org/The_Loop
about: the variable $do_not_duplicate as an array
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 1 weitere Ergebnisse dieses Threads:

no double posting!

11. Apr. 2011 (von: msderky)

hey still working and editing my arthemia theme and there is a small fix that has really been bugging me but I want it fixed. I would like the posts that show up in my headline/featured to not show up…


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: