• Is it possible to have wordpress page to have its own set of posts. I have a blog for a while, and now, I need pages to have its own posts.(almost like a sub-blog!) I cannot change theme or any major changes since would affect the entire blog. So, is there a solution or any plugin available? I do not want those posts from pages to show on the main blog.
    I am intermediate blogger (I can play around with php little bit, not much though)

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi – Yes, you want a query_posts statement before the loop

    ?>php if(is_page('sub-blog1') {
       query_posts('cat=4&otherstuffgoeshere')
    }
      <!--   LOOP  -->
    <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>

    You assign all the posts you want on this page to a category and put the category ID code in the query_posts statement. Then you add a query_posts to your index page to EXCLUDE that same category from your posts page.

    Info on query_posts so you can fill in ‘other stuff goes here’:
    https://codex.www.ads-software.com/Template_Tags/query_posts

    Thread Starter cricrazy

    (@cricrazy)

    Thanks.

    Is there a solution that does not use php, or rather has been solved in a plugin?

    Thanks a lot for your input!

    I’m using Page-Links-To to automatically redirect requests back to specific tags or alternatively specific categories.

    I would post an example of how I’ve got it setup but I’ve broken my blog by running a second on a subdomain, hence why I’m at the forums ?? Essentially what it allows you to do, is create a page and place a automatic redirect on it, so when a user clicks on the Posts about my Dog page, it sends them to https://www.myblog.com/index.php/category/MyDog/

    If someone can help me, I’ll be sure to post and help you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress pages to have its own set of posts’ is closed to new replies.