Skip to content

Instantly share code, notes, and snippets.

@scottnix
Created September 18, 2012 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottnix/3745204 to your computer and use it in GitHub Desktop.
Save scottnix/3745204 to your computer and use it in GitHub Desktop.
Gallery Theme remove bottom nav
// add custom WP 3.0 menus
function gallery_navigation() {
global $post;
if ( !is_single() ) : ?>
<div id="nav-below" class="navigation">
<?php if(function_exists('wp_pagenavi')):
wp_pagenavi();
else : ?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'thematic')) ?></div>
<?php endif; ?>
</div>
<?php else:
endif;
}
add_action('gallery_navigation_below', 'gallery_navigation');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment