Skip to content

Instantly share code, notes, and snippets.

/gist:7cf07aa620d800d09588 Secret

Created Aug 25, 2014
Embed
What would you like to do?
add_action( 'genesis_entry_footer', 'wpsites_single_cpt_navigation' );
/**
* @author Brad Dalton
* @example http://wpsites.net/
* @copyright 2014 WP Sites
*/
function wpsites_single_cpt_navigation() {
if( 'grants' == get_post_type() && is_single(array('167','168','175')) ) {?>
<div class="alignleft">
<?php previous_post('&laquo; &laquo; %', '%title'); ?>
</div>
<div class="alignright">
<?php next_post('%title'); ?>
</div>
<?php
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.