WordPress.org

Support

[Resolved] Replace string question / bug?

  • All great with this plugin save that the replace does not seem to be working. Trying to replace content as follows:

    replace=”=’/wiki” with=”=’http://en.wikipedia.org/wiki”]

    but URL is still returning mine instead; tried with some other variants as well but replace seems not to be taken into consideration.

    Thx for any suggestions

    https://wordpress.org/plugins/shortcurl/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eli

    @scheeeli

    I believe wikipedia.org uses DoubleQuotes around their href values, so maybe my shortcode is not replacing any “=’/wiki” in the content because it’s not finding any?

    Try this:
    replace=’=”/wiki’ with=’=”http://en.wikipedia.org/wiki’]

    Please let me know how this resolution works for you, and mark this topic resolved if it works.

    Aloha, Eli

    Perfect! thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Replace string question / bug?’ is closed to new replies.
Skip to toolbar