Support » Fixing WordPress » Removing content from several posts at the same time

  • Hello,

    I’m trying to rework a site that was developed several years ago before you could embed or insert youtube content directly with WP. I am trying to removed any tags [embedyt] [/embedyt] that pertain to an old plugin that will no longer be used. Can I use a plugin search and replace tags from posts without having to go in and individually remove them from every post?

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can use a search and replace plugin to help with that.

    https://wordpress.org/plugins/search/search+replace/

    MAKE A BACKUP FIRST!

    https://wordpress.org/plugins/search/backup/

    So in other words I can use better search and replace, and provided I use those tags it will remove them from my posts?

    Yes, that should be how it works. Many if not all of these types of plugins allow you to preview what will be changed so you can test before actually running the replace.

    Again, be sure to make a full database backup before you do a search and replace, so you don’t risk losing data.

    Sorry for the newbie question, have only run the plugin to change URLs was not aware of the fact that I could use it to change content in each post, but that makes sense as that information has be stored in the site’s database.

    I am assuming that I will need to have it search the tag, and then leave the second box blank, correct?

    I am assuming that I will need to have it search the tag, and then leave the second box blank, correct?

    I’m not sure if I fully understand the question, but some plugins support wildcard or fuzzy matches to match partial results.

    Another option is to use WP-CLI and run wp search-replace using the regex option
    https://developer.wordpress.org/cli/commands/search-replace/

    A third (scary) option is to do this directly in MySQL. If you go this route, it may be easiest to dump the database to a text file, then use your preferred text editor to do the find and replace, then import the updated database file.

    With any of these options, make a separate database backup first.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing content from several posts at the same time’ is closed to new replies.