[wp-hackers] wp_link_pages

Otto otto at ottodestruct.com
Mon Sep 24 04:14:12 UTC 2012


On Sun, Sep 23, 2012 at 10:23 PM, John <dailyrants at gmail.com> wrote:
> I have a question about wp_link_pages and hope someone can help. I see that
> the link_before and link_after arguments are inserted before and after the
> *text* of the links, and not before and after the actual link elements. How
> would one go about inserting markup before and after each of the <a> tags?
> Am I missing something?

Well, from a cursory glance at it, wp_link_pages has no way to do
that. Copy the function to a custom one, edit it to do what you want,
then use your new function instead.

-Otto


More information about the wp-hackers mailing list