Support » Fixing WordPress » Parameters Not Working in wp_link_pages

Viewing 5 replies - 1 through 5 (of 5 total)
  • This still doesn’t work in 2.7. Can anyone provide a working example because I’m thinking it’s a bug.

    I’m having the same issue. And just with the default function itself. No parameters.

    Can anyone use all of the parameters in wp_link_pages?

    well, it works here, but this template tag:

    <?php wp_link_pages('before=<p class="pagebar">Seiten: &after=</p>&next_or_number=number'); ?>

    gives me this output:

    <p class=\"pagebar\">Seiten: <a href="">1</a> 2 <a href="">3</a> <a href="">4</a> <a href="">5</a> <a href="">6</a> <a href="">7</a> <a href="">8</a> <a href="">9</a> <a href="">10</a></p>

    why this: <p class=\"pagebar\"> that part is obviously broken 🙁

    I can’t tell whether it’s working in 2.8 or not, because I don’t know exactly how to set it up. Please provide an example of what to place in Page-Editor and/or a template.php. I want a long page to be in convenient sections without hardcoding links to separate pages.

    I just realized that page.php has wp_link_pages, as shown below, so why can’t I just insert some sort of <!–nextpage–> tag? … Nothing happens.

    <?php get_header(); ?>
    	<div id="content">
    	<div class="entry">
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parameters Not Working in wp_link_pages’ is closed to new replies.