Skip to content

Instantly share code, notes, and snippets.

@tenman
Created September 24, 2013 00:20
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 tenman/6678806 to your computer and use it in GitHub Desktop.
Save tenman/6678806 to your computer and use it in GitHub Desktop.
part.php next previus link position change from content after to content before.
<?php
/**
* Template part file part
*
* @package Raindrops
* @since Raindrops 0.940
*
*/
$format = get_post_format( );
if ( $format === false ) {
$raindrops_entry_meta_class = 'entry-meta-default';
}else{
$raindrops_entry_meta_class = 'entry-meta-'. $format;
}
?>
<?php
if( is_single( ) ) {
raindrops_prev_next_post( 'nav-below' );
}
raindrops_entry_title( );
?>
<div class="<?php echo $raindrops_entry_meta_class; ?>">
<?php
raindrops_posted_on( );
?>
</div>
<div class="entry-content clearfix">
<?php
raindrops_prepend_entry_content( );
raindrops_entry_content( );
wp_link_pages( 'before=<p class="pagenate clearfix">&after=</p>&next_or_number=number&pagelink=<span>%</span>' );
raindrops_append_entry_content( );
?>
</div>
<div class="entry-utility entry-meta">
<?php
echo raindrops_posted_in( );
edit_post_link( esc_html__( 'Edit', 'Raindrops' ). raindrops_link_unique( 'Post', $post->ID ), '<span class="edit-link">', '</span>' );
raindrops_delete_post_link( esc_html__( 'Trash', 'Raindrops' ). raindrops_link_unique( 'Post', $post->ID ), '<span class="edit-link">', '</span>' );
?>
</div>
<?php
comments_template( '', true );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment