Skip to content

Instantly share code, notes, and snippets.

@yoren
Last active August 29, 2015 14:14
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 yoren/71e028d925b3c396ae57 to your computer and use it in GitHub Desktop.
Save yoren/71e028d925b3c396ae57 to your computer and use it in GitHub Desktop.
Move page links on top of share buttons in Ryu
<div class="entry-content clear">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'ryu' ) ); ?>
</div><!-- .entry-content -->
<?php
function ryu_child_post_pager( $content ) {
if ( is_single() ) {
$content .= wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'ryu' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'echo' => false
) );
}
return $content;
}
add_filter( 'the_content', 'ryu_child_post_pager', 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment