WordPress.org

Ready to get started?Download WordPress

Forums

Next/Previous post link alternative text? (3 posts)

  1. beattie282
    Member
    Posted 2 years ago #

    Hello all,

    Thanks for any help before hand :)

    right i know this is probably a simple case of adding one thing or another. but everything i typed into google game me plugins which i dont want to use.

    simpley this code below
    <?php previous_post_link('< Prev | <b>%link</b> ') ?>
    displays "< Prev | dynamic post name"

    i would like the "< Prev" part to be the link and get rid of the Actual post name since they can get a bit big it messes up my nice stlying.

    ive tryed just the <?php previous_post_link ?>

    but that gives me the post name

    ive tryed <?php previous_post_link('< Prev') ?>

    once again thankyou for any help.

    i am sorry if this is a simple thing am missing.

  2. Chouby
    Member
    Posted 2 years ago #

    I did not test, but according to the codex and if I understood well what you want to do, I would write:
    `<?php previous_post_link('%link', '< Prev') ?>

  3. beattie282
    Member
    Posted 2 years ago #

    thankyou! very much

    this works perfectly :)

Topic Closed

This topic has been closed to new replies.

About this Topic