Skip to content

Instantly share code, notes, and snippets.

@imath
Created January 29, 2023 19:36
Show Gist options
  • Save imath/51b215059a415ad8825d6ca62eb39f0c to your computer and use it in GitHub Desktop.
Save imath/51b215059a415ad8825d6ca62eb39f0c to your computer and use it in GitHub Desktop.
WordPress template part to use to have previous and next post displayed into the pagination of the single template
<!-- wp:group {"tagName":"nav","className":"single-footer-pagination","layout":{"type":"flex","justifyContent":"space-between"}} -->
<nav class="wp-block-group single-footer-pagination">
<!-- wp:post-navigation-link {"type":"previous","showTitle":true} /-->
<!-- wp:post-navigation-link {"showTitle":true} /-->
</nav>
<!-- /wp:group -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment