Support » Fixing WordPress » A quicky! Another Blog

  • Resolved zeecc

    (@zeecc)


    Hi was thinking is it possible to make a new post page?

    I want to post some small guides and want it to be seperated from the blog I am writing (Basically i dont want certain posts to be posted on the frontpage and be posted on a new made page).

    Hope you understand what I am trying to ask for 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Forum Moderator

    You would need to exclude these new posts (by category, tag or post ID) from your front page using a custom query. Depending upon what theme you are using, you may want to consider creating a child theme for this change.

    I have query_posts( ‘posts_per_page=2’ ); in on my static frontpage so shall i just add query_posts( ‘cat=3&year=2004’ ); into it aswell and change it after my needs?

    esmi

    (@esmi)

    Forum Moderator

    No. First you need to decide what criteria you will be using to exclude these posts.

    Yeah of course i change the criteria after my taste so something along the lines as
    query_posts( ‘posts_per_page=2’ )
    query_posts( ‘cat=guides&year=2012’ );

    I’ll take a longer look into the links you’ve posted.

    esmi

    (@esmi)

    Forum Moderator

    No. You would need to use something like query_posts( 'posts_per_page=2&cat=guides&year=2012' ). You do not use `query_posts() more than once in a template file.

    There we go. Thanks a lot! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘A quicky! Another Blog’ is closed to new replies.