• Thank you for this wonderful plugin, it works great however i need a costum feature that im tring to make for 2 days but i cant :(. I apriciate very much any help by your side.

    I want to format the Source Url, i have to strip a string from the URL/Permalink. I did a code to do that. However i dont know where to put it. All i have to do is to edit the wpematico function that sets the permalink.

    here is my code
    <?php
    $dirty_url = “https://xxx.com/article.php?ref=rss&id=xxxxxx&#8221;;
    // i have to remove the ref=rss& from the URL so i did so
    $dirty_url = str_replace(‘ref=rss&’,”, $dirty_url);
    echo $dirty_url;
    ?>

    This code works great however im unable to edit the permalink. Can you please help me. Thank you in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter astone9

    (@astone9)

    I did a little research and im unablt to use str_replace because the_permalink() prints the output therefore i can not edit it with str_replace.

    <a href="<?php str_replace(".com/", ".com/game-", the_permalink()) ?>">link</a>

    please help me

    I “believe” you could do this without editing any source code at all.

    Login, got to WPeMatico -> ‘your campaign’

    At the very bottom of the form you’ll find “Rewrite Option”

    in the textarea headed “Origin” enter: ref=rss&
    Leave the “Rewrite to” textarea empty, but check the checkbox.

    Hopefully, that will do what you want it to do, but I can’t guarantee. I haven’t tried it.

    Good luck

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WPeMatico] formating link source’ is closed to new replies.