Speed up your Oxygen workflow

with Hydrogen Pack

A true Oxygens Editor Enhancer
Starts from $19.99

Add prev and next post with title and thumb

Add this in codeblock in single post template

<?php $prev = get_previous_post(); ?>

<a href="<?php echo get_permalink( $prev->ID ); ?>">

	<h3><?php echo apply_filters( 'the_title', $prev->post_title ); ?></h3>
	<?php echo get_the_post_thumbnail(
  		$prev->ID, 
  		'thumbnail',
  		array('class' => 'your-class-name')
	); ?>
  
</a>



<?php $next = get_next_post(); ?>

<a href="<?php echo get_permalink( $next->ID ); ?>">
	<h3><?php echo apply_filters( 'the_title', $next->post_title ); ?></h3>
	<?php echo get_the_post_thumbnail(
  		$next->ID, 
  		'thumbnail',
		array('class' => 'your-class-name')
	); ?>
</a>

Title is wrapped with h3 and thumbnail is having class ('your-class-name') that you can change to your needs.

If you need help with custom scripts or you are not skilled enough to implement something from the tutorial?

HIRE ME

Stay up to date with latest post and updates.