Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. Can I just run a search regex and replace “https://stopcrime.org/wp-content/uploads/” with “https://centraloh.yourcrimesite.com/files/” for existing media?

    Yes, that should work just fine. Change 1, then check the page to make sure the image is showing before going through them all.

    2. … Let’s say the current post-meta is “entry-preview”, what do I swap it out with? And I assume I have to do that AFTER I change the URL’s above?

    You would change entry-preview to _thumbnail_id and, yes, do this after changing the URLs. +1000 to using Norcross’ Post Meta Manager plugin to accomplish this.

    Once again, change 1 of them, then check that your image is showing as the featured image in both the front-end and wp-admin.

    1. Use a search/replace tool that supports serialized data or you may break your widgets and/or site!
    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    2. As long as entry-preview stores the ID of the image in the media library, changing the meta key name will work. If it stores the URL, you’d have to do a lookup (ie query the media items for the one with that url) to get the ID and store that in _thumbnail_id. In that case you’d do that before the search and replace or you may not get the correct lookups.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing custom fields from a single install for media files’ is closed to new replies.