Sorry about the delay here. I tried using the Get Code and pasting it into my functions.php, but it didn’t help. I researched this on google and bit and tried a few other things, but didn’t get anywhere.
Maybe this add’l info will shed some light on my issue:
1. You mentioned above “or slug clashing with something else”. So the truth is that this originally was my only CPT. Then, I created a second CPT with the same “slug”, not realizing that this would mess up the permalinks for the first CPT. So I renamed the slug for the first CPT, but since then the permalinks don’t work for that CPT. Does that help you understand how to fix the problem?
2. Also, only this CPT has the permalink slug section hidden on the add/edit post page. My other CPT, and regular posts/pages all have the permalink slug section displaying, and permalinks working. If I use my Developer Tools browser add-on, I can see that there is a CSS class embedded on the edit page for only this CPT:
#edit-slug-box {display: none;}
I have no idea where that CSS is being generated from! If I comment it out (via Developer’s Tools), the slug reappears. But no matter what I change the permalink to, when I resave the page and try to visit the page, I get a 404 error.
I will be thrilled if you can help me fix this!
Thanks for your help,
NS