Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2014 16:55
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 anonymous/67731ed5ce69eb203716 to your computer and use it in GitHub Desktop.
Save anonymous/67731ed5ce69eb203716 to your computer and use it in GitHub Desktop.
function wpsites_npp_navigation_links() {
if( 'portfolio' == get_post_type() && is_single() ) {?>
<?php previous_post('&laquo; &laquo; %', 'Previous', 'no'); ?>
| <?php next_post('% &raquo; &raquo; ', 'Next', 'no'); ?>
<?php
} }
add_action('genesis_entry_content', 'wpsites_npp_navigation_links', 5 );
@davechu
Copy link

davechu commented May 5, 2014

// hi! let's try here. Dave

function wpsites_npp_navigation_links() {
if( 'portfolio' == get_post_type() && is_single() && in_category('category-1') ) {?>

|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment