Add Next and Previous in posts page in Oxygen Builder

To add Previous and Next post links on single post pages in Oxygen Builder, enter below code in your Code Block.

Previous

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

Without arrow

<?php previous_post_link('%link'); ?>

Next

&lt;?php
if ( get_next_post_link() ) {
	next_post_link();
}
?&gt;

Without arrow

<?php next_post_link('%link'); ?>
Copyright © 2024 Siam Naulak.
magnifiercrossmenu