WordPress.org

Support

Support » How-To and Troubleshooting » How to get blog to split into pages once I’ve made so many posts?

How to get blog to split into pages once I’ve made so many posts?

  • Something similar to Pagebar, I guess? But something that works in 2.7?

    Please check my blog http://thegoldenowl.co.uk – as you can see, In the 5 posts I’ve made there is quite a lot of stuff to scroll through.

    If it keep growing it will take forever to load. How do I make it so that stuff goes into different pages (maybe have something like “older posts” click here)?

    All help greatly appreciated.

    Thank you

    Felix

Viewing 13 replies - 1 through 13 (of 13 total)
  • thisisedie
    Member

    @thisisedie

    Put

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    </div>

    in the index.php of your theme (look at the index.php of the default theme for placement) and

    .navigation {
    display:block;
    width:100%;
    }
    
    .alignleft {
    float:left
    }
    
    .alignright {
    float:right;
    }

    in your stylesheet if they aren’t already there and then go to admin/settings/reading and choose how many posts you want to show on the front page. Default is 10.

    Pagebar v2.5 will support mulit-paged pages and the enhanced comments display. I hope to deploy the new version sometime in spring.

    Hi Eddie.

    The “.navigation.. display:block…” is NOT in my stylesheet. Do I add it myself? If so, anywhere in particular? Or just anywhere?

    As for the first bit of code..

    Do i out that anywhere in particular in the index.php or just anywhere?

    Thanks for your help. Most appreciated.

    Felix

    thisisedie
    Member

    @thisisedie

    Put:

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
    <div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
    </div>

    right after <?php endwhile; ?> and just before <?php else : ?> in your index.php and then put

    .navigation {
    display:block;
    width:100%;
    }
    
    .alignleft {
    float:left
    }
    
    .alignright {
    float:right;
    }

    at the bottom of your stylesheet.

    I’ve just done that 🙂

    But nothing has changed on my site http://thegoldenowl.co.uk (scroll down!)

    Will this be an automatic thing where it changes once it reaches a certain amount of *something* ..? What is this something, post count or material within my posts? My posts are often image heavy, you see.

    Thanks mate, really do appreciate you replying all the while. 🙂

    thisisedie
    Member

    @thisisedie

    How many posts do you have it set to in your admin section? settings/reading

    I’ve just changed it to two, so that you can see the extra “<<PREVIOUS” that appears on the far bottom left of the page. It’s aesthetically displeasing! How do I remove it?

    I think that will be all I need to know 🙂

    Roy
    Member

    @gangleri

    Take it out of your index.php.

    What do I search for to take it out? Sorry, I’m new at this and have only been blogging for a week.

    thisisedie
    Member

    @thisisedie

    Nevermind anything I’ve said previously. I didn’t see the pagebar thing. So you want a numbered list at the bottom of the page then — not previous and next links?

    What do I search for to take it out? Sorry, I’m new at this and have only been blogging for a week.

    You JUST put it in yesterday upon my instruction. You take it out the same way you put it in…

    No no, I mean to take out the EXTRA “previous” button on the far bottom left of the site. Please have a look and you’ll see what I mean.. I’m happy with it how it is, except for the extra button!

    Roy
    Member

    @gangleri

    Open index.php in notepad and use control+F to search for “previous”. You’ll find a line like this:

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries')) ?></div>
    <div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;')) ?></div>
    </div>

    Delete it.

    Thank you all very much. That worked. 🙂

    Have a great weekend.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to get blog to split into pages once I’ve made so many posts?’ is closed to new replies.