How to change the text output of "previous_post_link()" ?
-
I would like to get the link to the previous and next post. So I thought of
previous_post_link()
But then I can’t really use it because it gives me a link with the posts title as the linktext. But I don’t want the posts title, I want “prev” and “next” as the text.
Now I thought maybe I can do it like this:
revious_post_link('more');
But that doesn’t create any output at all.
So, how can I get the link to the previous post by not being forced to use the title as the linktext?
Is is maybe possible to get the raw link, without HTML a href formatting?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘How to change the text output of "previous_post_link()" ?’ is closed to new replies.