Yoast SEO
Remove html tag wrap for variable %%POSTLINK%% in RSS tool (1 post)

  1. Parneix
    Posted 3 years ago #

    This is a condensed and improved version of an issue I documented here:

    WordPress version: 3.5.1
    WordPress SEO version:

    I did this: I input %%POSTLINK%% into Facebook php sharer (or others) like so: http://www.facebook.com/sharer/sharer.php?u=%%POSTLINK%%
    This method works in the old plugin RSS footer (also by Yoast)

    I expected the plugin to do this: Output a correct sharing link in my RSS like so:

    Instead it did this: it wraps a <a href=""></a> around the post permalink therefor breaking the Facebook php sharer (which only needs the link, without the added tag) like so:
    http://www.facebook.com/sharer.php?u=<a href="http://mysite.net/title-of-post/">Title of Post</a>

    What I would like is to get rid of the link tags: the permalink of the post itself is enough: I can add the HTML myself.

    Any thought about a way to fix this?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic