Isn’t there a filter for wp_get_archives?
-
I’m writing a plugin that will apply rel=”nofollow” to navigation links (generated by wp_list_pages()) to any pages and posts that have an option set to nofollow links to those posts/pages.
I’ve managed to do that for pages with the wp_list_pages filter from which I get back the pre-formatted link with html tags that I can manipulate and add rel=”nofollow”.
However, for posts I have not been able to find any suitable filter to do the same thing. The closest I have gotten is with the post_link filter, but it only returns the URL for the link which means the formatting of the HTML around the link as specified by wp_get_archives
wp_get_archives('type=postbypost&before=<li>&after=</li>')
will be lost.Does anyone have any solution or suggestion to my problem?
- The topic ‘Isn’t there a filter for wp_get_archives?’ is closed to new replies.