Grow your CSS skills. Land your dream job.

“Older Articles” Button

  • # May 25, 2012 at 4:32 pm

    Hello,

    I was wondering if anyone knew how to get an “Older Articles” link for WordPress? Examples of what I mean can be seen by visiting these two websites: http://www.tuaw.com/ (Scroll right the the bottom “Older Articles”) and http://www.cultofmac.com/ (Scroll right to the bottom “Older Posts”).

    Thank you.

    # May 25, 2012 at 10:08 pm

    This is a very basic WordPress feature. By default, the main page shows 10 posts, and then the “Older posts” link just goes to the next page of posts (usually at http://www.yoursite.com/page/2 ).

    So, unless you did some customization on your WordPress setup, all you have to do to is to add this code:

    Older posts

    But I think that link should already appear on your site by default anyway.

    # May 26, 2012 at 6:55 am

    That’s exactly what I wanted but how do I get the page number to change within the hyperlink? So, if they go to page 2, how would I alter the hyperlink to go to page 3 when clicked?

    Thank you for your help, Senff.

    Morgan

    # May 26, 2012 at 7:43 am

    This is standard WordPress functionality, those links should show up automatically if you have enough posts, and you won’t have to do anything for it.

    # May 26, 2012 at 8:29 am

    Ah! I accidentally removed “< ?php include (TEMPLATEPATH . '/_/inc/nav.php' ); ?>” from my index.php file. I didn’t realise this was to do with page navigation.

    Thank you Senff.

    # May 26, 2012 at 8:59 am

    There you go! :)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".