Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP code for inserting Previous/Next post links at the end of a WordPress post
the_post_navigation(
array(
'next_text' => '<span class="meta-nav" aria-hidden="true">Weiter</span> ' .
'<span class="screen-reader-text">Weiter</span> <br/>' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">Zurück</span> ' .
'<span class="screen-reader-text">Zurück</span> <br/>' .
'<span class="post-title">%title</span>',
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment