WordPress.org

Ready to get started?Download WordPress

Forums

How to get blog to split into pages once I've made so many posts? (14 posts)

  1. feeelix
    Member
    Posted 5 years ago #

    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

  2. thisisedie
    Member
    Posted 5 years ago #

    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.

  3. Lutz Schröer
    Member
    Posted 5 years ago #

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

  4. feeelix
    Member
    Posted 5 years ago #

    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

  5. thisisedie
    Member
    Posted 5 years ago #

    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.

  6. feeelix
    Member
    Posted 5 years ago #

    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. :)

  7. thisisedie
    Member
    Posted 5 years ago #

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

  8. feeelix
    Member
    Posted 5 years ago #

    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 :)

  9. Roy
    Member
    Posted 5 years ago #

    Take it out of your index.php.

  10. feeelix
    Member
    Posted 5 years ago #

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

  11. thisisedie
    Member
    Posted 5 years ago #

    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...

  12. feeelix
    Member
    Posted 5 years ago #

    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!

  13. Roy
    Member
    Posted 5 years ago #

    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.

  14. feeelix
    Member
    Posted 5 years ago #

    Thank you all very much. That worked. :)

    Have a great weekend.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.