adjust the code for previous/next post

Hey. I'm building out a theme and putting in the code for previous/next post (which isn't naturally part of the theme and had to be put into a particular folder on SFTP)

This is what they gave me:


// =============================================================================
// -----------------------------------------------------------------------------
// Standard <footer> output for various posts.
// =============================================================================

<?php x_entry_navigation(); ?>
<?php if ( has_tag() ) : ?>
<footer class="entry-footer cf">
<?php echo get_the_tag_list(); ?>
<?php endif; ?>

Which produces this effect:

I'd like those arrows to appear in the center</center> of the page.

Also, they are appearing on the Archive posts -->

And I only want them on the basic posts.

And finally; would You please show me the code to have the featured image appear on the outside (left of the left arrow, right of the right arrow) of the arrows?

Thank you so much!

  • Bojan Radonic
    • Head of Support

    Hey @Griffin,

    Hope you're well today :slight_smile:

    I responded in your previous thread with a plugin for post pagination. The plugin allows you to use post names and also add custom images to it.

    Regarding centering those this shouldn't be a problem as we can easily do that with CSS. Please let me know if the plugin could work for you first.

    Best regards,

  • Griffin
    • The Crimson Coder

    i'll check it out i'm doing some other editing right now. So this plugin could, say, link to "The Great Story" from post1; and then go back to post1 when 'Return to Story' (a link) gets clicked?

    and * then * if post2 linked to "The Great Story" would go back to that?

  • Bojan Radonic
    • Head of Support

    Hey again @Griffin,

    I tested the plugin on my sandbox site and this can't be done out of a box as if custom text is added it replaces the default Post Name in the navigation but this should be fairly easy to do with some custom CSS by using before element.

    You can keep the default settings and add the following CSS code in the style.css file of your child theme or if your theme doesn't have custom CSS tab add it in your site using the following plugin:

    .wp-post-navigation-pre:before {
        content: 'Return to ';
    .wp-post-navigation-next:before {
        content: 'Link to ';

    This should be the result, see screenshot.

    Hope this helps :slight_smile:


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.