Hi, firelf:
First, thanks so much for your interest in PLP.
Second, I want to make sure I understand the scope of your issue.
You want “Next” and “Previous” to appear in your page lists, but they aren’t appearing? Is this correct?
Or are you having trouble styling these links?
Thanks for any clarification you can provide.
Ok, great. Now that we’ve narrowed the problem, can you confirm your theme’s using the wp_link_pages function (http://codex.wordpress.org/Function_Reference/wp_link_pages)?
I manage a testing and staging environment with the default 2012 theme and no other plugins. I can’t recreate the problem there so I suspect this is either a theme issue or a plugin conflict.
Thread Starter
firelf
(@firelf)
While I investigate the functions of the parent theme, this demo site http://ms-wit.com/ has only the four Page Links Plus plugins and the Twenty Twelve default theme, but no links for “Next” and “Previous.” I’m using the quick tag, <!–nextpage–> for page breaks.
Thread Starter
firelf
(@firelf)
<?php // Required, based on Zurb's Foundation framework
if ( ! function_exists( 'required_single_content_nav' ) ) :
/**
* Display navigation to next/previous pages when applicable
*/
function required_single_content_nav( ) {
?>
<nav class="nav-single">
<h3 class="assistive-text"><?php _e( 'Post navigation', 'requiredfoundation' ); ?></h3>
<span class="nav-previous"><?php previous_post_link( '%link', '← %title' ); ?></span>
<span class="nav-next"><?php next_post_link( '%link', '%title →' ); ?></span>
</nav><!-- .nav-single -->
<?php
}
endif; // required_content_nav
?>
Are the differences between the function above, and the one below, significant?
<?php // Twenty Twelve
if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
/**
* Displays navigation to next/previous pages when applicable.
*
* @since Twenty Twelve 1.0
*/
function twentytwelve_content_nav( $html_id ) {
global $wp_query;
$html_id = esc_attr( $html_id );
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
<div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
<div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
</nav><!-- #<?php echo $html_id; ?> .navigation -->
<?php endif;
}
endif;
?>
I suspect your manually inserted “<!–nextpage–>” tags are causing the issue. Try either removing them or selecting “Ignore existing <!–nextpage–> tags?” in the auto pagination module.
Let us know if this didn’t fix the issue, firelf.