Admin Search & Replace

The Admin Search & Replace feature allows you to update internal references to posts or terms across your entire WordPress site. It is especially useful when working with dynamic content, such as Dynamic Templates or Forms, that reference other posts or taxonomies by ID.

Operation modes

Once the feature is activated via Greyd.Suite → Features, it becomes available under Tools → Greyd Search & Replace. On this page, you can choose from three modes of operation: Posts, Taxonomies, and Manually.

Screenshot of the seach and replace page, explained in the previous paragraph.

The Posts option lets you replace references to specific posts across the site. This includes anything referenced by post ID — such as Dynamic Templates, Forms, Popups, Attachments, or Terms. To perform a replacement, first select a Post Type. Then choose the source post to replace and the target post to use instead. Clicking “Search & Review” initiates a site-wide search but does not apply any changes yet.

The Terms option works similarly but targets taxonomy terms like categories or tags. It identifies all content connected to the selected term and updates the connection to the new term. This includes both taxonomy assignments and direct mentions of the term within post content. Start by selecting the relevant Post Type and Taxonomy. Then pick the term to be replaced and the new term to use, followed by “Search & Review”.

The Manual mode is intended for advanced users who want to define their own search and replace patterns using regular expressions. This option is currently not implemented.

Preview and confirm changes

After starting the search, the page reloads to show results. If no matches are found, a button appears to “Start next search”. If matches exist, a detailed review list is displayed.

Screenshot of replace functionality, explained in the next paragraph.

There is also an optional checkbox: Move the searched post/term to the trash. Enabling this will delete the original content after a successful replacement.

Once verified, you can finalize the process by clicking “Replace now”. Note: this action is irreversible. A confirmation screen follows, showing a success or error message along with a log of the changes made. From there, you can begin a new search.

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Last updated: