• 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • can I ask a really stupid question?

    Why would you want to apply nofollow to what you call “navigation” links?

    “Navigation” links sounds like links that are internal.

    The same question is applicable to post titles…why would you do that?

    Unless your nicking someone else’s feed and those are the urls inside the links .. and of course, that would just be shitty.

    Thread Starter bercon

    (@bercon)

    I don’t want to distribute page rank to pages like “contact” and “about us”. Instead I want to distribute my available page rank to more important pages.

    Concentrating available page rank and page reputation to where it makes the most use is very important for SEO purposes.

    Thread Starter bercon

    (@bercon)

    Nobody has a solution to this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Isn’t there a filter for wp_get_archives?’ is closed to new replies.