Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other wordpress archive help!

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24065
    dave
    Member

    hello
    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 advance

    #53621
    dave
    Member

    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.

    #53625
    chazzwick
    Member

    This tag should list all pages in a certain category.

    Code:

    This tag needs to be in the loop
    http://codex.wordpress.org/The_Loop

    Read this for more info:
    http://codex.wordpress.org/Template_Tags/query_posts

    #53629
    dave
    Member

    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:


    Category:


    Monthly Archives

    Category Archives

    Post-by-Post Archives

    #53039
    cooljaz124
    Member

    Hey Dave,

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.