WordPress.org

Ready to get started?Download WordPress

Forums

Posts spread onto several pages? Also, are sub-posts possible? (9 posts)

  1. ka1eh
    Member
    Posted 4 years ago #

    I am currently developing a website using wordpress, and was hoping to be able to display posts onto two pages: news and articles.

    I am having difficulty figuring out how to accomplish this.
    On the settings>reading, I changed it so that posts will be posted onto the 'Articles' page, and it worked fine, but I also want certain posts on the other page.

    Is there another way of going about this?

    Thank you for your help. I hope I supplied enough info. :)

  2. ka1eh
    Member
    Posted 4 years ago #

    My other topic was closed, but it was not the same question.
    Here is my other question:

    " I am currently developing a website that contains articles, and articles within those articles.
    I was planning to create a Page named Articles, and have the articles set up as posts. Are sub-posts possible? Is there a hack or widget that I would need to install? I would really like to get this issue resolved soon. :)

    Thank you. "

  3. esmi
    Forum Moderator
    Posted 4 years ago #

    Sub-posts aren't possible but sub-categories are if you're going down the posts route. If you opt for Pages, you can create sub (child) pages.

    On the settings>reading, I changed it so that posts will be posted onto the 'Articles' page, and it worked fine, but I also want certain posts on the other page.

    You can use query_posts to exclude/include on any posts page.

    http://codex.wordpress.org/Template_Tags/query_posts#Exclude_Categories_From_Your_Home_Page

  4. ka1eh
    Member
    Posted 4 years ago #

    Okay, I will take a look at those links.

    Thank you so much esmi for being so helpful on these threads. :)

  5. ka1eh
    Member
    Posted 4 years ago #

    So, I have to create my own theme to be able to put certain posts on certain pages?
    Or are themes and templates different?

  6. ka1eh
    Member
    Posted 4 years ago #

    [ sorry for triple posting. ]

    Here is what my index.php looks like.
    I want to exclude categories 1,3,5,and 7.

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
    
    <?php
       if (is_home()) {
          query_posts("cat=-1,-3,-5,-7");
       }
    ?>

    Is this right?

    Thanks for any help.

  7. esmi
    Forum Moderator
    Posted 4 years ago #

    So, I have to create my own theme to be able to put certain posts on certain pages?

    Yes. Or modify an existing theme - which might be a lot less work.

    Is this right?

    It looks OK.

    Have you read http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website ?

  8. takien
    Member
    Posted 4 years ago #

    yes, I need this feature too..
    I hope this will be added in the future development...

  9. takien
    Member
    Posted 4 years ago #

    Hi.. finally...
    i have created a WordPress Sub Post Plugins,
    here is the link http://takien.com/550/wordpress-plugin-wp-sub-post.php

    that's beta version...

Topic Closed

This topic has been closed to new replies.

About this Topic