Hey there I'm working on a custom theme and have an issue with next_posts_link & previous_posts_link that is really bugging me.
If we look at this snippet of navigation that appears on the single.php page:
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
When WordPress renders this code. The hyperlink does not wrap around "«" and only wraps around what is generated by "%link".
This is FINE, this is what I want. Now if we look at this second snippet of code, taken from my index.php file:
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
Now the markup is nearly identical, with the exception of "%link" being replaced with "Older Entries" & "Newer Entries".
For some reason WordPress will render this bit of code with the hyperlink wrapping around "«"
I don't like this and want to make it render the "«" outside of the hyperlink as it does in the other circumstances.
Where can I modify this?