Support » Fixing WordPress » Custom Post type not found after url change

  • Hi,

    i have a custom post type integrated. Now, i changed the url via wp-config, because of server changes. Everything is working fine, except the custom post type backend. I can not enter it any more. If i click on the custom post type, i will be forwarded to an /not_found page.

    any ideas why is that.

    I Have the same problem with Advanced Custom Field Plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • After creating or changing your CPT refresh your permalinks.

    Just go into ‘Settings > Permalink’ and click save.

    Thread Starter maximaldesign

    (@maximaldesign)

    Did not work. I made a search and replace in my DB after that i worked.

    I had the same problem and replaced the old URL with the new one in wp_postmeta via SQL in the DB.
    UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://example.com', 'http://localhost/example');

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post type not found after url change’ is closed to new replies.