• noshowmojo

    (@noshowmojo)


    Hello

    I’m running WordPress v.2.6 on my website.
    I want to customize the posts links so that instead of:

    <<Older Entries | Newer Entries>>

    we can see

    <<Name of the previous post | Name of the following post >>

    This is probably a common request but I haven’t figured it out.
    Here is the existing code:

    <?php previous_posts_link('Newer Entries &raquo;') ?>
    <?php next_posts_link('&laquo; Older Entries') ?>

    If I change (‘Newer Entries »’) to (‘%postname%’) it just
    shows as a string ‘%postname% ‘

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter noshowmojo

    (@noshowmojo)

    Anybody?

    graphicdznr

    (@graphicdznr)

    Easy, just use:

    <?php previous_posts_link(); ?> and
    <?php next_posts_link(); ?>

    ??

    Thread Starter noshowmojo

    (@noshowmojo)

    Tried that:

    <?php previous_posts_link(); ?> and
    <?php next_posts_link(); ?>

    Doesn’t work.
    All I get is literally

    “Next page >>”
    “<<Previous page”

    I want to see the actual title of the next and previous posts.

    Thread Starter noshowmojo

    (@noshowmojo)

    anybody??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to customize previous/next post links??’ is closed to new replies.