Title: [Plugin: WPeMatico] formating link source
Last modified: August 19, 2016

---

# [Plugin: WPeMatico] formating link source

 *  [astone9](https://wordpress.org/support/users/astone9/)
 * (@astone9)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpematico-formating-link-source/)
 * 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 = “[http://xxx.com/article.php?ref=rss&id=xxxxxx&#8221](http://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](https://wordpress.org/support/users/astone9/)
 * (@astone9)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpematico-formating-link-source/#post-1859705)
 * 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
 *  [MyShadowSelf](https://wordpress.org/support/users/myshadowself/)
 * (@myshadowself)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpematico-formating-link-source/#post-1859755)
 * 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.

 * ![](https://ps.w.org/wpematico/assets/icon-256x256.jpg?rev=2757072)
 * [WPeMatico RSS Feed Fetcher](https://wordpress.org/plugins/wpematico/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpematico/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpematico/)
 * [Active Topics](https://wordpress.org/support/plugin/wpematico/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpematico/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpematico/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [MyShadowSelf](https://wordpress.org/support/users/myshadowself/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpematico-formating-link-source/#post-1859755)
 * Status: not resolved