Created
January 30, 2019 10:57
-
-
Save WordPress-Handbuch/dfdebe96e95ba9fa37ae28c3c98c4b64 to your computer and use it in GitHub Desktop.
PHP code for inserting Previous/Next post links at the end of a WordPress post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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