Title: Search &amp; Replace Page Specific Code
Last modified: July 18, 2022

---

# Search & Replace Page Specific Code

 *  Resolved [pingiskhan](https://wordpress.org/support/users/pingiskhan/)
 * (@pingiskhan)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/search-replace-page-specific-code/)
 * Hello!
 * As you can see on the link above, I have implanted hreflang on page-specific 
   headers with your plugin. It works great! I have connected over 2000+ pages with
   this method.
 * However, I **fucking** put the wrong hreflang code on my Serbian version. I put
   hreflang=”rs” instead of hreflang=”sr”.
 * I don’t want to spend another 6 hours updating each page manually. I have tried
   Better Search & Replace to fix this error but that plugin can’t find the database
   where this plugin stores the page-specific Header tags.
 * So, is there anything else I can try?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsearch-replace-page-specific-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/search-replace-page-specific-code/#post-15848605)
 * Hello [@pingiskhan](https://wordpress.org/support/users/pingiskhan/),
 * Well, HFC store codes for articles to `wp_postmeta` table within the `meta_key`
   with name `_auhfc`. Data is stored as serialised array and code is escaped.
 * I would recommend you to get the standalone app “Database Search and Replace”
   version 3.1.0 [https://interconnectit.com/search-and-replace-for-wordpress-databases/](https://interconnectit.com/search-and-replace-for-wordpress-databases/)
   and then
    1.  **BACKUP WORDPRESS DATABASE!!!**
    2.  upload package to your WordPress root on the server (it’s not a plugin)
    3.  visit that folder in borwser
    4.  search for field: `hreflang=\"rs\"`
    5.  replace with field: `hreflang=\"sr\"`
    6.  select only table `wp_postmeta`
    7.  do a `dry run` to make sure only that content will be replaced
    8.  if it looks good, do a `live run` to search&replace for real
    9.  when it finishes, **MAKE SURE YOU DELETE SEARCH APP FROM YOUR SERVER!!!**
 * Example in action: [https://drive.google.com/file/d/1LEItbybMD5LPMsgjw9J–lN6YN0dSBih/view?usp=sharing](https://drive.google.com/file/d/1LEItbybMD5LPMsgjw9J–lN6YN0dSBih/view?usp=sharing)
 * Please let me know if you have any further questions on this topic?
 * Kind regards,
    Aleksandar

Viewing 1 replies (of 1 total)

The topic ‘Search & Replace Page Specific Code’ is closed to new replies.

 * ![](https://ps.w.org/head-footer-code/assets/icon.svg?rev=3299702)
 * [Head & Footer Code](https://wordpress.org/plugins/head-footer-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/head-footer-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/head-footer-code/)
 * [Active Topics](https://wordpress.org/support/plugin/head-footer-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/head-footer-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/head-footer-code/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [header](https://wordpress.org/support/topic-tag/header/)

 * 1 reply
 * 2 participants
 * Last reply from: [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/search-replace-page-specific-code/#post-15848605)
 * Status: resolved