Creating a page displaying the posts just one category in Pinboard

Viewing 3 posts - 1 through 3 (of 3 total)
  • #14430
    b.kant
    Participant

    Hi all,

    I am trying to create a blog with WordPress and the Pinboard theme. I would like to have different pages that show only one category of posts.

    I was able to do so with the very simple code

    query_posts('cat=1');
    while (have_posts()) : the_post();
    the_content();
    endwhile;

    But I really like the layout of the “Blog, Full Width” template. Unfortunately, I do not understand how and where to insert that I would like to have just one category.

    Thanks for your help!

    My blog isn’t online yet, so I cannot send the link to it, sorry!

    B.Kant

    • This topic was modified 9 years, 4 months ago by b.kant.
    #14437
    Daniel Tara
    Keymaster

    You can select your general layout under Appearance > Theme Options > Layout. You don’t need custom queries for each category as WordPress automatically creates an archive for each category.

    #14471
    b.kant
    Participant

    Hi Daniel,

    thanks for your answer. You are right, it is a lot easier to the automatically created archives and link them in the custom menu. Did not think about.

    I just took out the news page from the menu – as I do not want to have a page displaying all posts together.

    Thanks!

    B.Kant

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.