WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] A quicky! Another Blog (7 posts)

  1. zeecc
    Member
    Posted 1 year ago #

    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 :-)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  3. zeecc
    Member
    Posted 1 year ago #

    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?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  5. zeecc
    Member
    Posted 1 year ago #

    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.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  7. zeecc
    Member
    Posted 1 year ago #

    There we go. Thanks a lot! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic