Forums

Same Post should enter into 2 different Pages (2 posts)

  1. ramiramilu
    Member
    Posted 2 years ago #

    Hello,

    I have seen that when we write post it will only show up in the home page.

    But what i want to get is it should come up int he home page as recent posts and also in a different page.

    For example:-

    Required Action -

    Post (if it is article) -- > Home Page , Article Page
    Post (if it is C#) ------- > Home Page , C# Page

    Present Action -

    Post (if it is article) -- > Home Page
    Post (if it is C#) ------- > Home Page

    So can anyone let me know the possible solution. I know that this can be done through some coding. But i am a newbie to WP. So kindly need some help.

    Regards,

    Rami Vemula.

  2. Rafael Poveda - RaveN
    Member
    Posted 2 years ago #

    Hello there.

    You just have to do a custom query.

    In this cases, if categories are article and C#:

    <?php query_posts('category_name=article'); ?>
    <?php query_posts('category_name=C#'); ?>

    You must do the custom query before the loop.

    You can use the category ID if you prefer.

    <?php query_posts('cat=6'); ?>

    If you have any problem with this, just write again :)

Topic Closed

This topic has been closed to new replies.

About this Topic