- This topic is empty.
January 28, 2009 at 11:29 pm #24065
is anyone familar with any php function that i could use within my archive page, so that it will only show
post for a certain category.
basicly i have post coming from my home page, and also from a seperate news page.
currently im creating an archive for my news page, but i dont want it to show the entries fro my home.
ive search the web for hours but have not found anything.
thanks in advanceJanuary 29, 2009 at 8:27 am #53621
its me again, perhaps im not wording my question in the correct way. is anyone familar with how one would go about setting up unique archive pages for seperate categegories, or seperate pages. ultimately this is what im trying to do. im certain that if i can be pointed in that direction, this would also give me the answer for how to not show postings from another page/category within an archive page.January 29, 2009 at 5:51 pm #53625chazzwickMember
This tag should list all pages in a certain category.Code:
This tag needs to be in the loop
Read this for more info:
http://codex.wordpress.org/Template_Tags/query_postsJanuary 29, 2009 at 10:09 pm #53629
hello and thanks for replying. actually i tried to use the querypost function but this does not work. the following is my code for my archive page. when i insert the querypost function within the loop, my post acts strange and insert a long list of repeating the post.
again this is the code that im using, but the issue is that my archive page is displaying post from all post (particularly home page) i want it to display only the post from cat=5. im mainly refering to the postbypost section, the month section and category section will be removed.Code:
Post-by-Post ArchivesMarch 30, 2011 at 11:33 am #53039cooljaz124Member
http://wordpress.org/extend/plugins/wp-category-archive/ is the plugin you are looking for. I’m also in search for similar solution, but without plugin.
Ofcourse, using querypost inside archive page won’t work.
PS : There are some permalink hacks to take care of to make it work, do read the FAQ page.
- The forum ‘Other’ is closed to new topics and replies.