Wp_pagenavi code does not work
-
Hello everyone,
I am using the Bouquet theme and I have downloaded Pagenavi. I have found the whole previous_posts_link story and have replaced it with pagenavi codes so it looks like this:
// Display navigation to next/previous pages when applicable function bouquet_content_nav( $nav_id ) { global $wp_query; ?> <nav id="<?php echo $nav_id; ?>"> <h1 class="assistive-text section-heading"><?php _e( 'Post navigation', 'bouquet' ); ?></h1> <?php if ( is_single() ) : // navigation links for single posts ?> <?php wp_pagenavi(); ?> <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?> <?php wp_pagenavi(); ?> <?php endif; ?> </nav><!-- #<?php echo $nav_id; ?> --> <?php } endif; // bouquet_content_nav
However it still does not work. The plugin is activated and everything. Did I miss something?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Wp_pagenavi code does not work’ is closed to new replies.