Search And Replace

Replacing content

This add-on for Broadcast find and replaces texts in posts during broadcast.

Several terms can be created, each containing a string to search for, and the string that will be used as the replacement.

The terms can be selectively applied to include or exclude blogs.

 

Screenshots

Notes

The search for string can be a normal string or a regular expression. Start the regexp with a forward slash, in that case.

Both strings can use normal WordPress shortcodes in them.

Both strings offer various keywords (see screenshots) that are automatically replaced during broadcasting. The keywords in the search for string are replaced with values from the parent blog. The keywords in the replace with string are replaced with values from each child blog.

The content that is replaced is the post content and whatever else is parsed by other add-ons. For example ACF Text and WYSIWYG fields.

Where to buy

This add-on is a part of the following packs:

Comments

  1. Thanks for this feature.. I have a few questions..

    1 – I seem to be running into issues when I use ” in the search fields.

    Once I save, it adds escaping \ before the ” … and then if I save, it stops working. My only recourse seems to be to delete the entry and start again.. as it works on first save.

    2 – For the find/replace, I want to be able to do the following..

    From blog 1 to blog 2 … replace foo with bar
    From blog 2 to blog 1 … replace bar with foo

    Do I have to make 2 separate entries?

    3 – There does not seem to be a way to “unselect” blogs.. once you’ve clicked into the field, it selects some, but you can never unselect..

    1. I’ll have a look at these tomorrow and report back here when I’ve got the bugs all fixed.

      Regarding #2, yes. Two entries.

    2. You could be my hero and add a “bi-directional” flag so I don’t have to make 2 entries :)

Leave a Reply

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