WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding a Post Category to a Page (3 posts)

  1. selfmade64856
    Member
    Posted 4 years ago #

    Hello, I've tried to find the answer to this online and in the forums, but I can't seem to come up with a solution.

    If you go to my website http://sitesires.com , you will notice that in the nav bar there is a page called "Articles". What I would like to do is to have that page show all my posts that are under the "Articles" category which are here: http://sitesires.com/category/articles/

    I would think that there would be some kind of shortcode I could just insert into the page, but I can't find one.

    Any suggestions would be greatly appreciated.

    UPDATE!
    I found the "show-posts-shortcode" plugin here:
    http://wordpress.org/extend/plugins/show-posts-shortcode/

    I would still like to know if there is a way to make the posts show with the excerpts on a page.

    Thanks!

    Courtney Bostdorff

  2. zartgesotten
    Member
    Posted 4 years ago #

    There is a way! Put this in the loop of you index.php or page.php

    <?php if (is_page('xy')) { query_posts('cat=yx') } ?>

    Good luck
    Anja

  3. selfmade64856
    Member
    Posted 4 years ago #

    I tried that on both pages but no luck. Thanks for the advice though! ;)

Topic Closed

This topic has been closed to new replies.

About this Topic