Real-Time Find and Replace for WordPress

Real-Time Find and Replace Plugin


This plugin allows you to dynamically (i.e. at the time when a page is generated) replace code and text from themes and other plugins with code and text of your choosing before a page is delivered to a user's browser.

Because the find and replace happens in real-time no changes are needed to plugins or themes which means upgrades remain easy!

Here are some examples:

  1. Are plugins inserting redundant JavaScript files such as multiple versions of jQuery? Get rid of all but one!
  2. Want to change the URLs of JS or CSS files, including those inserted by plugins, to load from a CDN instead of locally? No problem!
  3. Want to tweak how Woocommerce product pages display headings without modifying the template? It's easy.
  4. Don't like the “Category:” text that the Dagon Design Sitemap plugin puts in front of every category? Remove it!
  5. Annoyed by the link that Global Translator adds to every page? Remove it!
  6. Have you noticed that the Sociable plugin doesn't correctly display the Twitter image? No problem, insert it!
  7. Don't like the link that the Photodropper plugin inserts with every image? It's out of there!

And remember, all of the above can be done WITHOUT modifying theme or plugin files so you'll always be able to upgrade them without having to worry about losing custom edits.

Real-World Examples

First of all, the interface (shown below) is pretty straightforward. On the left is where you specify what to search for. On the right is what, if anything, you want to replace it with. And in the middle you can indicate whether you're specifying a standard rule or a regular expression i.e. with pattern matching.

1. Have you ever noticed that Google is picking up multiple versions of your pages with different replytocom parameters? This can result in a lot of duplicate content. There are have been a bunch of suggestions on how to fix this including redirects, disallow entries in your robots.txt file, and dynamic parameter settings in Google Webmaster Tools. With the Real-Time Find and Replace plugin you can keep Google from finding these URLs entirely while still keeping the commenting functionality. Just add this rule:

?replytocom= replaced with #replytocom=

Pretty sweet, right? Now the duplicate URLs don't even exist so you don't have to block them and you won't lose link equity.

Note: This solution works perfectly on this site with this theme. I haven't tested it exhaustively with other themes so be sure to test our your comment form after implementing.

2. Sometimes I close comments on a page or post. I don't like having the text that reads “Comments are closed”. I figure such a message is redundant since you can't enter a comment. To remove this I use this regex rule:

/<p class=\"nocomments\">(\s)*Comments are closed.(\s)*<\/p>/

Note: With regex rules you to need to start and end with a forward slash.

3. I use the Author Bio Widget, but it spits out a tag I don't use. I could modify the plugin to remove it, but that would mean that when I upgrade the plugin I'll lose the code update I made. So instead I use this rule:

<span class="bio-title"></span>

4. I want Gravatar support on this site in some areas, but I hate having the same unknown icon displayed for commenters that don't have a Gravatar image and in my case that's most of them. To keep Gravatar support on while also eliminating the image I use this regex rule:


As an added bonus, removing all of these Gravatar calls reduces page load time.

5. I use the Digg Digg plugin for displaying social media buttons. This plugin injects an unnecessary call to a big JavaScript file that just slows down the page. I remove it from the HTML code using this regex rule:


6. The Photodropper Plugin outputs a link to an external site for every image it adds to a post. I think this is excessive so I remove the link with this rule:

<a href="">photo</a> which is replaced with just "photo"

Note this technique of removing links from plugins works everywhere. I've used it for a bunch of plugins.

7. The Digg Digg plugin (mentioned above) calls a JavaScript file well above the closing body tag of the page. To help with fixing a problem related to Facebook generating pages by appending a parameter (see this discussion on the fb_xd_fragment problem) to my URLs I need to remove this JavaScript call so I can manually add it to footer.php in the right place. I remove this code with this replace rule:

<script src=""></script>

Still don't see the value? Here's another write-up showing you how to use this plugin for SEO and some more real-world, but more general, examples.

Pro Version

The pro version of this plugin includes some filtering options (querystring, referrer, useragent, and post type) so you can better control when matching rules are executed. There's also a description field to help you manage your many rules.

Real-Time Find and Replace Interface

Before you buy, please note that:

  • You are required to buy one (1) license per domain. Additional installations on ‘localhost' do not require a separate license.
  • Due to high demand, the price has been recently increased despite what it may say elsewhere. The price is subject to change in the future.
  • You can use the discount code 20PercentOff when you spend $40+.
1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 4.29 out of 5)


  1. Sorry, had to deactivate the free version first. All is well.

  2. Bought the pro version but cannot activate it.
    Getting the following message

    Fatal error: Cannot redeclare far_plugin_meta() (previously declared in /data01/virt48346/domeenid/ in /data01/virt48346/domeenid/ on line 163

    Can you help?

    Thanks, Eva-Maria

  3. I'm getting a Download failed. Unauthorized error when I try to update the pro version, I'm unable to find the original download link either.
    I purchased it on Dec 3rd and my paypal email address is the same as what I'm using in this comment. Can you either email me an updated version or let me know how I can update it?

    • New link sent. If you don't receive it, let me know.

      • Got it thanks!

  4. Hi

    Your plugin is working well and solved a couple problems - thank you. I have a couple instances where it doesn't work for some reason. I cannot replace "PROCEED TO CHECKOUT" with "GO TO CHECKOUT" at and also once in checkout screen, there is a replace that does happen temporarily (Pre-order: > Expected In Stock) BUT then it reverts back to the original "Pre-order:" Any idea why these 2 things don't work? Would the PRO version definitely fix these?

    • I haven't seen a temporary replacement before. That's odd and I don't know how it could happen. The plugin should be able to do what you've described. The pro version adds some more control via filtering, but I don't see it performing differently in your situation.

      • In some cases, words are being capitalized by CSS, try and find the real html text, and reaplce that, specially buttons often are css styled and in your case, it might aswell we Go to checkout instead off GO TO CHECKOUT. as i looked on your website, a button is called "PROCEED TO CHECKOUT" it is actually "Proceed to Checkout" so if you fill that in, you can change it!

        good luck.

  5. Hi, I bought the pro version because I thought I could use excel to upload the settings. Is there anyway to upload 100s of different rules/ settings easily?

    • Unfortunately, there is no generic import facility. Is there something in the description that made you think you could import using Excel?

  6. I have the pro version but we migrated from a sub folder to the parent domain, now we're unable to reactivate our licence (can't add additional find/replace. Otherwise, the plugin is perfect!

  7. Is it possible to get an agency license? For multiple 200 of them :-)

    • I'm sure we can work something out! I sent you an email separately from this forum reply.

  8. There was a question re replacements not happening in feeds. Normally this is when people want relative urls and use a regex to rewrite the page to relative urls.
    You could add a setting to your plugin not to run a certain rule for feeds and for sitemaps:

    if ( is_feed() || get_query_var( 'sitemap' ) ) return; // do not do anything in sitemaps and feeds

    • Thanks for the tip! That option should be pretty easy to add.

  9. Hi -

    I must be getting tired because I cannot find where or how to enter the license key for Real-Time Find and Replace Pro. Please let me know.

    Thanks for a great product at a great price.

    - dave

    • Go to the plugin's settings page. At the top of the right sidebar there should be a box for the key. Drop in the key, hit save, then hit activate. If everything works, the Activate button should read Deactivate.

      I too think the price is great, but I may be biased :-) Thanks for the feedback.

      • Hi Marios -

        Thanks for the update. I uninstalled the OLD version (I had it for less than 1 day) and reinstalled. This time the license screen came up and it worked. Hey 30 % off means buy two - get one free ( or close to it) . Just another way of saying the same thing - thanks again!

  10. The plugin works great for me. I'm using it to replace an image url. The problem is when the post is published, and then shared on social media, the original image url is shown in all social media, and the not new one I'm replacing it with. I have it set to share posts immediately after they are published. When you go to the site, the correct image is showing, but the old image is showing on Twitter and Facebook.

    Do you know of a way to replace the text before the post is published? I am creating several posts automatically, which is why I would not be able to make these changes manually. Any help would be appreciated. Thank you

    • Hmmm... That's an interesting situation. I'm not sure how what you've described could be happening as the replace happens when a page is accessed whether that's by a person or a machine.

      Are you using a plugin to automatically share on social networks?

      • I am using the embedded sharing tool within wordpress. As soon as the post is created, it is then shared, so that must be happening before the replace happens. It must be within miliseconds. I am using IFTTT to create the post.

        • I don't think it's a timing issue. My plugin executes when a post is requested and before it is delivered to the user. Having said that, I don't know how the sharing module you're using works so I don't know if it's somehow bypassing the plugin's functionality.

  11. I purchased the pro version of this app but it's not working. I am trying to update links site wide. I type in the url I want to replace and put in the new url and click on "update settings" . NOTHING happens. It says it's done it but then when I check the pages the links haven't changed. Help please!

  12. Sir
    If i install this plugin on my wordpress site, when i activate the plugin, then my site not opens. It just opens a blank white page.
    Again when i deactivate the plugin, site opens normally
    What is the problem?

    • I haven't seen that behavior before just from activation. Are you able to turn debugging on temporarily to see if any messages are given? I'd have to guess there's a conflict with another plugin. Do you use many plugins? Are any of them premium plugins?

      • Yes i am using a lot of plugins.( No one is premium plugin, all are free versions)..Initially i also thought that some other plugin is having conflict with this. I checked ....I de-activated all plugins and activated only this one........Still the problem remains same..........Means problem is with this plugin......When i deactivate this plugin and activate all others, there is no problem

        I am using Wordpress theme leeway. Earlier the plugin was working on same theme and it worked well for 20-25 days and suddenly one day, this problem occured...

        If i used this plugin with my other site having same theme, there is no problem. Only this site is giving problem...That's very strange

        Can u make an idea What may be the reason?

        • I installed the Leeway theme and activate just this one plugin. I had no problems. If possible, can you try either or both of these:

          1. Turning on debugging and then reactivating the plugin. Please send me any errors that appear.
          2. When the plugin is active, can you access the settings pages? If so, can you insert IGNORE at the beginning of each Find box? This will cause the rules to be ignored. If you can now see your pages, there's a problem with the rules and not the plugin as a whole.

      • Thanks a lot for your prompt reply. I am highly grateful to you for your quick customer service.
        In the meantime i have solved the issue today after one month.
        Accidently i unchecked the checkbox of regx and it worked perfectly fine after that..

        Now i have one query if u can reply
        i have a url [url removed]
        i want to convert it into [url removed]
        means i want to remove [url removed] from the starting of url

        How can i do that?

        • I'm glad to hear you found and fixed the problem!

          To update the URL in the example you provided, create a basic, non-regex rule with the find set to "" and the replace with "" i.e. empty box.

        • Do i need to put " " around the text to replace ?

        • You don't need to put quotes around either the Find or Replace. For regular expression rules you need to start and end with a forward slash / in the Find.

  13. Hello Marios,

    On a https site I am getting annoying block content messages which is due to http references for a plugin e.g.,400,600,700,800. I can make edits within plugin concerned, but every time there is an update a re-edit is needed. I've tried the free version with no success. Can your pro version work its magic on the backend?

    Thanking you in advance,


    • Hi Phil,

      The pro version works on admin pages too. With the limitation that it won't work on the plugin's admin page because it could result in rule definitions being replaced by the rules themselves. But a rule marked to run on admin pages will run on every other admin page.


  14. I really, really like your plugin and find it very helpful. I bought the pro version also.

    I'm trying to remove some options in a dropdown - for example, I'd like to remove Category and replace with nothing. I cannot seem to get the plugin to remove it.

    Any suggestions for doing this are much appreciated.

    • If you direct me to the site you're working on, I can take a look. As a pro user, feel free to email me at support [at] infolific [dot] com.

  15. So simple, but so genius, I often find myself using this to patch things as I do a migration, simpler than doing a DB update and safer and you can patch link in the background as you work. Equally handy for adding to themes, rather than hack and slash at files, find a an ID or Class anchor and add your code, same for removals, just so handy. Never seen it diminish performance either :) nice work.

  16. I had a question about the plugin functionality. Would the following be possible?

    My website has a few high-level pages that have many child pages beneath them. Currently, the WordPress main menu nav features links like:
    - www.example[dot]com/about
    - www.example[dot]com/services
    - www.example[dot]com/portfolio
    - www.example[dot]com/contact

    However, if someone is on the page www.example[dot]com/group-1/, could this plugin dynamically find and replace that same main menu nav to:
    - www.example[dot]com/group-1/about
    - www.example[dot]com/group-1/services
    - www.example[dot]com/group-1/portfolio
    - www.example[dot]com/group-1/contact

    Then if they were on the page www.example[dot]com/group-2/, have the main menu of:
    - www.example[dot]com/group-2/about
    - www.example[dot]com/group-2/services
    - www.example[dot]com/group-2/portfolio
    - www.example[dot]com/group-2/contact

    • There are no filtering capabilities that allow you to specify when the plugin will do a replace or to have it adjust the replace dynamically based on some other variable. The plugin requires something specific in the HTML code to search for and once matched the replace will happen.

  17. Hello, is there any way to use reg expressions to modify links in post? I have a site with a huge job listings section that I am not updating anymore. All these post with a job offer have a link at the end pointing to external pages that now gave 404 errors as the offer is expired. I have used the same anchor text for all these links (see offer) and now I'd like to change the anchor to "the offer is expired, please go to the home page", with a link pointing to my home page.

    Is there any way I can modify massively this, being the external links all different? Any reg expression that I can use to replace any links to

    Thanks in advance for your time and help

    • Yes, a regular expression should work just fine to match all of the links and then replace them with the same new link.

      • Thanks for confirming that, but I am not familiar with reg expressions, and I was looking for some help in that sense... can you help my build one that will do the magic?

  18. Hello, I liked your plugin so much and its very much helpful for me.

    But when i tried to replace Google Adsense code. It's not working.
    So can you please help me for changing an old Google Adsense code, which i already added to each post page with my new code?

    Here's my old code: (I changed my client id and slot id)

    google_ad_client = "ca-pub-1234567891011234";
    google_ad_slot = "1234567890";
    google_ad_width = 300;
    google_ad_height = 250;

    I want it to replaced with

    google_ad_client = "ca-pub-9876543211011234";
    google_ad_slot = "9876543210";
    google_ad_width = 300;
    google_ad_height = 250;

    Can you please help me?

    • I think 2 rules would be easiest. In each rule just include the one of IDs and replace it with the new one.

  19. Hi Marios,

    Quick question. I've installed your plugin on a multisite config. I've only tried the plugin on a subdomain because it's all that has been developed.

    My posts output a trailing url that includes &rss=1 on the end. I'm trying to replace the &rss=1 with either nothing or just &. So far, just trying to find and replace isn't solving my issue.

    Do you have any recommendations?

    Thanks for the work that you do!


    • Nothing you've described seems to be outside of the plugin's capabilities. I would start small and see if you can replace just the rss, then the rss=1, and then the full match. Sometimes when you're dealing with characters like ampersands they can end up being HTML encoded and so the match rule needs to be different than what you expect.

  20. First of all thanks for developing this useful plugin. I have suggestion in mind. If possible it should be very useful if we could use this features in specific pages or posts too. For example If I want to replace to inside recent posts widget but not in actual or single pages. In short I don't want to change that image in all pages but only in specific page/post. Hope you understand what I'm trying to say.

    Thanks for giving some time enhancing this useful and free plugin. Keep up the good work.

    • Thanks for the idea. I've been toying with adding some filtering options to control when the rules are applied. Others have had similar requests so it certainly seems something worth adding.

  21. Basically, I want to know if you can take the regex string matched in the search string and use it in the replace string.


    • Yes that should work.

  22. Hi Marios

    I love this Find Replace pluggin!!! It's made my life so much easier. I'd even pay to use it!! :)

    One quick question:

    It works perfectly for single lines of code, but never works when I copy more than one line of code into a Find. I have to do it line by line, which makes it impossible to find and replace some parts of my blog, due to <div containing classes or <select where is on a different line etc (i.e. if I was to find and replace with blank, it would screw up many other parts of my blog. Is there a way to insert multple lines of code into a single Find?

    Also, just a suggestion/idea, could you create an export of the all the Find Replaces, just for peace of mind. I have quite a few and I worry in case somehow they get deleted.

    And one more idea, could you create a way to label each Find Replace so that it's easy to see what each one represents?

    Hope you're having a great week!!


    • Hi Philip,

      Have you tried the regex option for your search rules? With regex you can write a rule that matches anything including if the code goes to another line.

      Your 2 suggestions are good ones. I've had the same concern about losing my own rules :-) The labeling feature would also be helpful and should be easy enough to add. For the time being I'm inserting an HTML comment in the replace rule as a way to comment, but also to help find the the replace in the actual web page.

      Thank you for your contribution!

  23. I'm trying to find and replace a STRING that contains three dots (...)

    Ex: Text... Example => (replace) Text, Example

    But nothing that I do works. Any ideas?

    • That kind of replace should work without issues. Can you try a simpler replace just to confirm that everything is working? Also, make sure you're not looking at a cached copy of the page if you're using a caching plugin.

  24. Hi, Marios!

    The Real Time Find and Replace plugin doesn't appear to work on WP 4.0 Benny. I reported this over on the support forum for the plugin, but I thought I'd also come here, just in case you're not getting notifications from over there.

    I do hope you're still maintaining it! It's exactly what I need, and I'm so disappointed it isn't working for me.

    Thank you for the good work on the plugin, so far, even if you're no longer supporting it. :-)

    • Hi Melynda,

      Thanks for letting me know. Two things in response:

      1) Every new release of WordPress brings with it reports that this plugin doesn't work. Every time the issue turns out to not be related to the new release. Yes, it's possible that this time it is related, but I'd explore other explanations too. Common problems include caching and rules the function unexpectedly. I'm happy to help you look into possible issues with your site if you can share more info.

      2) I don't update to any "dot zero" releases of WP. I always wait for the "dot one" release e.g. 4.1. I don't have the time to deal with the inevitable bugs that come with a major release. No slight is intended for all of the great WP Core developers; it's just reality. So I haven't tested the plugin yet. I will as soon as WP 4.1 is out.

      Sorry, that's probably not what you wanted to hear!

      • Hi, Marios!

        No slight taken! I completely understand about not wanting to fiddle with the plugin between major updates of WP. I'm amazed that you spend time to support and maintain your plugins at all, with no compensation. This plugin, if I can get it to work for me, will be incredibly useful, and I'll be very happy to help you spread the word about it.

        Now then. Speaking of making it work for me ... ;-)

        I have absolutely no idea why it's not functioning properly for me. Perhaps I'm simply not using it properly, or perhaps there's a plugin conflict. I'm not using a caching plugin. I do have one installed, but not it's not network activated.

        I have a WP multisite install. Could that be the problem?

        Do you have suggestions about how I might go about troubleshooting? I don't know where to start, beyond trying a different theme and disabling my other plugins one-at-a-time and retrying Real-Time Find and Replace between each. Admittedly, I'm a noob, but I'm not afraid of getting my hands dirty, and I can learn ...

        Any ideas? Or can you point me in the right direction and give me a push?

        Thank you, by the bye. I'm absolutely thrilled to have received a reply from you. Amazed and grateful and humbled, too.


        • Ooo...forgot to ask:

          You'd written, "I'm happy to help you look into possible issues with your site if you can share more info." I'm in! What information about my site do you need?

        • Hi Melynda,

          You have good timing! Just this morning I upgraded to WP 4.0.1 and I can confirm the plugin continues to work. So that takes care of one variable.

          This might be a multisite problem, but I don't run multisite so I can't confirm. The first test I would try is removing all rules except for a very simple one. For example, pick a piece of text from your menu or footer. Make sure the text exists in the source code without any HTML tags within it. For example, if somewhere on your site you have the word "RSS" use that in Find box and in the Replace box write "RSS2" (no quotes in either case). Save the change using the Update Settings button and then reload the page on your site.


  25. Marios,

    Thank you for the great plugin. I downloaded it and used it successfully. Worked great. I would like to donate to your plugin. How do I do this?



    • Hi Terry,

      I'm glad you like the plugin. I don't really collect donations, but I appreciate the offer. Spreading the word about the plugin would be the best way to say thanks :-)


  26. Hi,

    This plugin is great, but I do have a question?

    Is there anyway to upload a list of changes to the plugin rather than having to input them each one by one.

    Example: I have a large excel file, and if a respective sequence of numbers is on a page, then it needs to be replaced with a correlating item.

    Is there anyway to copy and paste multiple find and replace items in one action, or does each have to be input separately?


    • Sorry, but there's no functionality for importing settings. You could try updating the field(s) directly in the WordPress database.

  27. Hi . thank you for your very very useful plugin . but I have a small problem with this plugin . when I setting this plugin to this setting :

    find : download replace : /// strong /// download /// /strong ///

    this plugin work good but titles word too, replace with same :

    Real time software /// strong /// download /// /strong /// by my web

    and this not good for my site . please help me to filtering this plugin only for post.

    // =>>

    thank you .


    • What you're trying to do should work. When something isn't work for me, I copy the find rule to the clipboard, then view the source of the page I expect to be modified, and then search for what's in the clipboard. This helps ensure that the find rule matches what's in the source code because even small differences will result in failure.

      • My friend this plugin work for me very well . i want to bold a word with strong source code but this plugin added HTML code in title and strong or bold code any time can't work in title .

        but this plugin in the post and other position work very well .

        please help me for solve this problem and able to filtering the positions .

        • Unfortunately there are no additional filtering options to tell the plugin to ignore titles or other parts of the page. It may be possible to write the find rule as a regular expression that won't match the title, but will still match other parts of the page. Regular expressions can be tricky though so I'm not 100% sure there's a solution for your particular case.

  28. When you add mulitple keywords to list and save, it doesn't works. Only the last keyword is saved and others get deleted. Plugin only saves if you add one keyword at a time and have to update everytime before adding new one.

    Please fix the error.


    • I found some jQuery incompatibilities and I believe I have corrected them. The latest version (1.5) should work as expected.

  29. The plugin doesn't work anymore. None of the pages loaded after adding a replace entry in the plugin settings.

    • The plugin continues to work fine for me. I've got many rules including regex replaces. I would suggest reviewing the rule you put in to make sure it isn't behaving unexpectedly. Maybe even start with a very a simple rule and build from there.

      I've also heard that some other plugins cause conflicts so if you've installed anything recently that could be the problem.

    • It doesn't work with wordpress 3.9.1 is there ay plans to update it?

      • I'm not aware of any problems with the plugin on WP 3.9.1. The plugin is used on this site which is running 3.9.1 and it is replacing text as expected.

        • Any ideas why it won't work on my site? it should be replacing the background from


          and nothing seems to happen...

        • The from and to parts didn't come through. Were they HTML?

        • Yes they we HTML coding

        • i still have the same problem after updating to the latest version of your pluggin, here is a tinypaste so you can look at what i need to replace

          the webpage is

          could you advice on how to fix this? thanks in advance for all your patience

        • Take another look at your source code. I see that the page uses single quotes in that div tag and not double quotes like your find rule. When looking at the source be sure you're not using a tool that "cleans" the code as you need to search for exactly what's in the source.

          I hope that fixes the problem!

  30. Hi Marios, the Real-Time Search and Replace plugin definitely doesn't work with the latest version of WordPress (3.5). After much experimenting, I found out that I had to downgrade to WordPress 3.1 and Contact Form 2.4.6 in order for the plugin to work properly. Obviously this is not ideal due to the inherent bugs and instability of the older versions.

    If you have a chance to debug the plugin, that would be great. It does the job beautifully but needs to catch up with the latest WordPress and Contact Form versions. Thanks!

    • The plugin continues to work fine for me with the latest WordPress -- I'm on 3.5.2. I don't use Contact Form 2.4.6 though.

    • It also stopped working for me after setting multisite version in 3.5

      • Sorry, but the plugin hasn't been tested on any version of WPMU. If it worked in the past, it was just lucky.

  31. Hello,

    The plugin had worked very well for a long time, however, today I was not able to Remove old entries. Instead it adds empty entries.


    • I'm seeing the same thing. As far as I can tell nothing actually breaks. You just can't remove the boxes. They can still be emptied and you can put other rules into them. Regardless, I'll be looking into the issue.

  32. Great plugin however the Regular expression doesn't work on WP 3.4.1 I have tried examples from this website to make sure the expression if correctly formated and nothing works. It returns a white page when I try to render my site.


    • The plugin works fine for me under WordPress 3.4. I can't imagine the changes in 3.4.1 were significant enough to break the plugin. Could you post one of the regex expressions here i.e. copy and paste exactly what you're using?

      • Here is the regular expression code I am testing with. This was taken from your site so I assume it's correct.

        Thanks for your help.

        /<meta name="generator" content="WordPress [0-9].[0-9].[0-9]" />/

        • I just tested the plugin and regular expressions are working for me. I tried an easy one where I replaced /generator/ with nothing. Things to keep in mind as it is hard to tell from the code you're pasting in as it gets modified in the comments...

          1. Start and end the search box with a forward slash i.e. /
          2. Be sure to escape special characters such as periods and forward slashes i.e. if you want to search for a period you need to type in backslash period.
          3. Watch out for line breaks in your code. On this site the meta name generator spans two lines so the regularly expression you provided won't work since there's nothing in it to account for the line break.

  33. Would this work on multisite? Would I have to network install it? Say if I wanted to get change wp-admin in all urls to site-admin, how would I do that?

    • This plugin hasn't been tested on multisite so I don't know how it would behave.

  34. I just installed this plugin and love it! Thanks!

  35. Hello,

    I just installed Real Time Find and Replace (WP v 3.2) and when I click ADD link, nothing happens -- no new window, nothing. Is there something I have to set (apart from activation) before it will function?


    • Hi Peter,

      Not sure why this happened, but the associated JavaScript files didn't get into the distribution file that is in the plugin repository. I'm working on correcting it now.

    • Hi Peter,

      Plugin distribution is now fixed. Just grab the latest version (1.3.1).

  36. Is there any way to filter the trigger so it only works on the index.php? That way the replacements wont affect the posts?

    • Marios Alexandrou


      There is no filtering available. I've thought about that before actually, but for me it is a "neat" idea and not one that I had enough need for to justify the effort. Sorry!

  37. Marios - useful plugin, but i am struggling with Regex turned on. Catastrophic result as the page does not load.
    I'm thinking it might be because I am running WP 3.0. Are you aware of any issues with it running on 3.0?
    Thank you.

    • Does the page load as a blank page? I have this same issue quite often. Check your regex and see if you are not striping any DIV tag in the process. Look at your pageĀ“s source without applying the regex and then make some experiments. There are plenty of regex testers online that can help.

      • yes, all blank. any, even the simplest, regex logic i use produces that same result.

        • Do you use an $ before and after your regex? Here is an example of a regex I use:

        • The comment system strips out some part of my code. The underscores do not really exist:

          Replace with a closing div tag.

    • Marios Alexandrou

      Hi Kevin. There may be some issue with WP 3.0. I have yet to migrate so I haven't tested out the plugin yet.

  38. I just installed this on a 2.9.2 website, and it doesn't seem to be working. I click on the "Add" button on the Real Time Search and Replace Tools page, but nothing happens. Shouldn't I get some kind of form to allow me to define rules?


    • Marios Alexandrou

      I'm using this plugin on multiple 2.9.2 installs. Clicking the Add button creates a new row of input boxes.

    • Dan, maybe you can see

  39. Hi, I really like your plugin and I've installed your plugin in my several blogs and it works correctly. But while I tried to install in my latest blog, it won't work. I can't add any input text in the setting page.

    Click "Add" below to begin.


    when I clicked [Add] button, it won't display anything (the input form). ..
    Probably you know the solution,..


    • Marios Alexandrou

      It looks like I missed including some files with the 1.1 release. I've corrected that omission with 1.2.

  40. Hi!

    I think there is a little bug in the plugin. Whenever I set a rule to search something that contains "#038;", it strips this string out from the "find" field as soon as I click the apply settings button. It happens when using both options, regex or not.
    Is this expected behavior or it is a real bug?
    What can I do to surpass this behavior and make it actually search for "#038;"? I've tried to escape all characters, but no joy either.

    Thanks a lot!

    • Daniel,

      I was able to save a rule with "#038;" in it. I didn't do anything special and it saved the first time. Are you able to enter other rules without problems?

      • Discovered that the problem is an "&" before the #308, making the problem string "&#308".
        The first time the rule is entered it stays there. If I go to another page and then go back to the plugin's settings, the "&#308" is not there anymore. Anyway, the string is part of a URL, if that matters.
        All other rules are always OK, only the ones using something like #+number are giving me this problem :(


  41. Hi. I've noticed that the plugin filters my feed, too.
    Is there any easy way to exclude the feed from being filtered?

    Thanks a lot!

    • Marios Alexandrou

      Sorry, there is no easy way i.e. no options you can set.

      • Ok, I didn't mean THIS easy ;)
        An "IF is_feed" well placed should do the trick, maybe?
        I am starting to study wordpress, if you could point me to the right direction, maybe I could figure it out.

        Thanks a lot!

  42. Marios Alexandrou

    Do you mean that if there's a match, but it's in the meta keywords, the replacement shouldn't happen? You can achieve this by using regular expressions although such regular expressions could get rather complicated.

  43. Hi. When using the plugin without marking "Regex", it works just fine. If I mark the "regex" box, I get a blank page on my blog (even with very simple regex expressions, like find my name and replace with another name, and even if I left all fields blank).
    So, marking the option "regex" just gives me a blank page (no code at all).
    Is there some special way to use it with regex? I am using wordpress 2.8.3.
    Thanks a lot!

    • It seems that it is needed to enclosure the regex between . Is it a problem with my installation or this is the way it meant to be? Is it included in some plugin documentation? I couldn't find it anywhere.
      If I use a regex very simple like or , it works fine.

      I am trying to rip off all images from posts syndicated with the FeedWordpress plugin, using the following regex:
      As I have to enclosure it between , it becomes:

      But it does not work. All I get is the blank site again. What am I doing wrong? I am sure the regex is right, because I took it from the regex website, so I think I am missing something, maybe escape some of the >s, but it does not work with > either.
      Help, please?

      • My examples get truncated... Anyway, if I use a regex like [Dd]aniel it works fine. If I try to use > greater and < lesser, it goes bad.

        • Marios Alexandrou

          Sorry that you're having problems with the plugin. I don't have any really complex regular expressions in use at the moment, but I do have one that might help. This one replaces the WordPress generator meta tag. Note that the regex starts and ends with a forward slash. And the forward slash that's part of the HTML has to be escaped with a backslash.

          /<meta name="generator" content="WordPress [0-9].[0-9].[0-9]" />/

        • Exactly what I was needing. Also, the site has valuable infos regarding the use of regex with PHP.
          Thanks a lot!

        • Any chance to get this filter to work on the post itself, filtering content in the database itself, instead of just on the reader screen? I think it would be great :)

        • Marios Alexandrou

          There are other plugins that make permanent changes to post and page content.

  44. i downloaded it and it really works and i have found it as the best replacement tool for word press.....

  45. This plugin breaks my wordpress 2.8.3 install any ideas?

    • Marios Alexandrou

      Works fine for me on 10+ installs of 2.8.3.

  46. I would like to replace some HTML code in my posts but it seems it dosen't work. I use WP-Super Cache, is it compatible ?
    Thanks! ;)

    • Marios Alexandrou

      Super Cache creates an HTML copy of the page that is delivered to the user. Once the HTML copy is created, plugins aren't executed so you won't be able to do a find and replace with my plugin. However, assuming Super Cache executes all plugins before it caches the page, then the find and replace functionality should work just fine. Note that I haven't tested this yet.

  47. Okay, I see the need and I need it. {Problem is it doesn't work on ANY of my sites!! Help please. Hitting add simply does nothing but add a # to the end of the url. Help would be appreciated. Tested on Linux and Mac, Firefox on both and Safari on Mac.


    • Marios Alexandrou

      Any chance that you didn't unzip the sub-folder included in the archive? The JavaScript files that house the add a box functionality are within the JS folder.

      • LOL, that's it, look at your zip file, it's missing the js folder

        • Marios Alexandrou

          Oops. I'm not sure how that happened. actually creates the zip file so I guess I somehow failed to submit the js sub-folder. I just uploaded a new version 1.0.2 and it looks like all files are included this time around.

          Sorry about that!

        • Any help with my below comment?

        • Marios Alexandrou

          I'm trying a similar replace and it's working fine for me. I've actually set up a rule to change the "Any help with" part of your comment to a link. Did you type in the find / replace rules or paste them from somewhere? Maybe a funky character (tab or something) got in there.

        • Right, works find with a url that fits within the form field, try a very long url, something longer that the form field.

        • Marios Alexandrou

          I dropped in a long URL. Still works fine for me. Check out the "any help with" text to see the URL I used.

  48. Works great, thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail.