Twenty Eleven
[resolved] help me to implement wp page number plugin (3 posts)

  1. Adnan Bashir Gujjar
    Posted 3 years ago #

    my blog url is http://www.filmylinks4u.net/
    i am using wp 3.4.2 with twenty eleven theme and with one side bar on right, i want to implement wp page numbers plug but i got error several times, please some body help me

  2. Michael
    Forum Moderator
    Posted 3 years ago #

    your linked site is using 'Slightly', a theme which is not released under the GPL license, and is therefore not supported by this forum.

    in Twenty Eleven (or rather in the recommended child theme of Twenty Eleven) you would for instance add this edited version of the original code into functions.php of the child theme:

     * Display navigation to next/previous pages when applicable
    function twentyeleven_content_nav( $nav_id ) {
    	global $wp_query;
    	if ( $wp_query->max_num_pages > 1 ) : ?>
    		<nav id="<?php echo $nav_id; ?>">
    			<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
    <?php if(function_exists('wp_page_numbers')) { wp_page_numbers();
    } else { ?>
    			<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div>
    			<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div>
    <?php } ?>
    		</nav><!-- #nav-above -->
    	<?php endif;
  3. Adnan Bashir Gujjar
    Posted 3 years ago #

    i migrated from twenty eleven but thanks anyway :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic