WordPress.org

Ready to get started?Download WordPress

Forums

Customizing the <?php wp_link_pages(); ?> (2 posts)

  1. Dantes100
    Member
    Posted 7 years ago #

    Hi,

    I need some help formating the <?php wp_link_pages(); ?> tag. The parameters are like this: <?php link_pages('', '', '', 'next page', '', '', ''); ?>.

    The problem is, it keeps creating a new paragraph, and I don't know why. Like this: link.

    I would like the "next page" to be immediately after the text (here: after the "mei. next page").

    The relevant code in the single.php is: <?php the_content('<p>Read the rest of this entry ยป</p>'); ?><?php link_pages('', '', '', 'next page', '', '', ''); ?>

    Somebody an idea?

    Thx
    Dantes

  2. meetar
    Member
    Posted 7 years ago #

    Dantes,

    WordPress wraps the_content in <p> tags, and it's difficult to change this. However, you're not the only one who wants to:

    http://ddhr.org/2006/04/28/wordpress-the_content/

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic