Last active
August 29, 2015 14:14
-
-
Save yoren/71e028d925b3c396ae57 to your computer and use it in GitHub Desktop.
Move page links on top of share buttons in Ryu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="entry-content clear"> | |
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'ryu' ) ); ?> | |
</div><!-- .entry-content --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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