• We are starting a new phase with our blog and would like to have it without posts. We do not want to delate our recent posts just have them stored in the archive only (not on the main page). Can this be easily done?

    Corey

Viewing 8 replies - 1 through 8 (of 8 total)
  • Maybe you could set your display options to only show a certain number of days, so that it would disregard the older stuff, until you have enough new posts and can switch it back to showing the last 10 or whatever you like to use.

    Take out The_Loop from the main page and use an Archive Page template to display older posts the way the Default Theme does.

    Thread Starter csaft

    (@csaft)

    Thank you for the replies. This ” The_Loop from the main page and use an Archive Page template” is a little over my head. Could you give me a couple more sentences of explanation.
    And where are the display options located?

    c

    If you go to the Options tab, then Reading. At the top is where you tell it what to display.

    The_Loop is everything between:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    and

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    It’s all the code that outputs the posts. If I understood what you want to do correctly, you need to take that out of your index.php and replace it with whatever you want there instead of posts. (Setting display options is still going to leave some posts on the main page, maybe only one.)

    http://codex.wordpress.org/The_Loop

    I don’t know what Theme you are using (link?), but the Default Theme includes an Archive template, to display archives differently from the main page. My best suggestions for understanding that are to look at the default theme for examples and to check this Codex page:

    http://codex.wordpress.org/Creating_an_Archive_Index

    I assumed since they said they are starting a new phase with the blog, that new posts would be added, and they just wanted the new posts to show and not the old ones. My answer is based on that.

    I read it differently, but they ought to be able to do either now.

    Thread Starter csaft

    (@csaft)

    Thank you.
    I will play around with it for a while.

    Corey

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘clearing the main page’ is closed to new replies.