Updated on April 22, 2020

This tutorial provides the steps to add previous and next post links on single post pages in Oxygen.

Step 1

Edit your Oxygen template for single blog posts.

Step 2

Add a Section where you want the previous and next post links to appear.

Add a Columns element with 50 50 column layout.

Add a Code Block element in the left column having:

<?php
if ( get_previous_post_link() ) {
	previous_post_link();
}
?>

Add a Code Block element in the right column having:

<?php
if ( get_next_post_link() ) {
	next_post_link();
}
?>

Select the right column div and set Right horizontal item alignment.

Reference: https://codex.wordpress.org/Function_Reference/previous_post_link

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: