Support » Plugin: Head & Footer Code » changing header in all posts at once

  • Hi, thanks for the plagin. Please, help me. I have a lot of different scrips at the HEADs of posts with the same text “XXXXXX” in one line. How could i change “XXXXXX” to “YYYYY” in all HEADS at once? May be there is the way using phpmyadmin or something else?

    Sorry my English

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @alekseykomarov,

    First of all, thank you for choosing my Head & Footer Code plugin.

    To bulk replace specific string in WordPress database you can use plugin Better Search Replace or stand-alone front-end script Database Search and Replace (which I prefer).

    Important features of both tools:

    1. They support replace in serialized arrays (which are used to store article codes in my HFC plugin).
    2. You can set source and target string and select specific tables where replace will be applied.
    3. You can select only specific tables where replace will be applied. To achieve what you wish, select only wp_posts and wp_post_meta tables.
    4. Before you do a live run, you can test results with dry run.

    IMPORTANT: Make sure that after you finish with replacement, you remove/uninstall plugin/tool for Search and Replace, to prevent security breach to your website because those tools allow anyone who has access to plugin/script screen to do any replacement in database.

    If you are happy how Head & Footer Code works, feel free to honestly review plugin at https://wordpress.org/support/plugin/head-footer-code/reviews/

    Cheers,
    Aleksandar

    Brilliant! 5 minutes and all changes have been done. Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘changing header in all posts at once’ is closed to new replies.