How to remove the Next & Prev out of the post nav link?
-
With the_post_navigation(), how can I get the “Next” and “Prev” out of the link so that it becomes a text based label, followed by the linked post title?
Example of current “Next” nav:
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'mytheme' ) . '</span> ' . '<span class="screen-reader-text">' . __( 'Next post:', 'mytheme' ) . '</span> ' . '<span class="post-title">%title</span>',
I’m sure there’s a way to do this without making a really ugly hack, but I’m not finding a good solution. Basically I’m looking to do this:
Next: This is the next post title
….but not this:
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to remove the Next & Prev out of the post nav link?’ is closed to new replies.