Home Forums General Issues Made a mistake with the slug, but how to fix it?


Made a mistake with the slug, but how to fix it?

  • I made the mistake of changing the slug of a custom post typem which created a new custom post type ‘animals’. I deleted that new CPT, and everything looks ok, except for some permalinks not working. I have a custom taxonomy for this post type ‘species’, and when I open ie, I get to see the dogs. But /species is returning an empty page, and so is the single custom post page. The url of this seems to be, but it shows a blank page. Trying only or don’t work, where is redirected to, which is a blank page.

    The posts are created with Formidable Pro. I checked all those fields, saved the settings again, updated the permalink structure, emptied the .htaccess before doing that, but nothing works. Not for old posts and not for newly created posts.

    Any ideas?

  • Hi @kneops

    If you’ve changed the slug of an existing post type you can just change it back and all your content will still be there. A tip for the future is that you can, instead of changing the slug, change the rewrite slug. That’ll effectively make it appear as if the slug has been changed while you still maintain all your old posts etc.

    What is your current post type now then? Your description is a bit confusing 🙂

    Also, this isn’t really an ACF issue so I think you should post in the support forum for Formidable Pro as well 🙂

  • Hi Jonathan,

    The actual name of my custom post is ‘dier’, with an hierarchical taxonomy ‘soort’. The post themselves are the names of the animals.

    So I should be able to view
    and for the posts

    but I can’t. I will check on the Formidable Pro forum as well.

  • Something else I forgot to mention is that I added ‘post’ to the Custom Rewrite Slug field. I then realized that this was a mistake too, so I removed it again.

    When I look at the database tables of the posts, in the column GUID I can see several different links. Some are formatted as /dier/felix, some as /post/dobey, but all belong to CPT ‘dier’.

    Even changing the permalink structure in WP to default, links like don’t work.

  • Hi!

    Okay. So any CPT created in WordPress has their permalink prepended with the CPT slug so your single page should be /dier/felix, not /felix. /dier should load your archive.php file in the theme and loop out all the posts ordered by date (provided archive.php has a regular loop).

    I think you might have a permalink clash somewhere. Do you have a page with a slug of pier as well? That usually causes issues.

  • Found the problem, and it had nothing to do with this plugin but with a setting in one of the custom hooks I created with Genesis Extender :).

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Made a mistake with the slug, but how to fix it?’ is closed to new replies.