Biggest question is if you’ve flushed your rewrite rules since enabling? I have a fix coming in 1.3.0 that will hopefully not make need to manually do that, but until then my original faulty attempt is still in place, and sometimes flushing the rules is necessary. This can be done by simply visiting the permalinks page, without editing any of those settings.
Nothing in the plugin should suddenly cause it to stop working.
Done like you suggested (visited wp-admin/options-permalink.php) but that dind’t work. Updating the permalink structure didnt do anything good either.
Is that ‘all the flushing’ I can do or is there more?
Any other suggestions?
Please be aware that your help is greatly appreciated!
C
That’s all that needs done for the flushing part. Not all that much to it.
Do you have any pages named the same as the post type slugs you’re using? That can often create conflicts as well, because WP ends up not sure whether to query for a page or a custom post type
No, there are no pages or posts named the same as any CPT. But now that you mention slugs, I did change 2 or 3 slugs of some CPT’s. Could that have caused this? And if so, what’s the best thing to do now? Delete all CPT’s and start all over again? Please tell me there are other options… “)
C
Yeah, if you renamed post types and the 404’ing url are for the old post type slugs before the change, then they’re not going to be properly recognized.
We do have a checkbox for switching post types, but it needs to be used before renaming, so that the old post types get converted.
If I am right so far, then perhaps re-register the original slug long enough to get them found again, and then use http://wordpress.org/plugins/post-type-switcher/ to switch those posts to the new post type intended.
Sorry, my bad. I didnt change the post type slug but the url of some of the original post types (not all of them).
So …/posttypeslug/this-is-the-posttype-url became …/posttypeslug/posttype-url
Could that have caused this? And is so, can it be repaired?
C.
Depends on if it’s the old post url that’s failing or the new one.
Just to clarify, you’re changing the posts’ slugs used for the individual post urls, not the post type slug which would be similar to “page”, or “post”.
Not sure at this point, unless there’s some sort of conflict coming in from other code elsewhere that’s modifying the query somehow.
Ever get this one figured out?
I deleted the pages of which I had the url changed and recreated them with the desired url. That did the trick. Not a very scientific approach and I’m not sure why it worked, but it worked 🙂
Thanks for helping.
C.
Sometimes the non-scientific approaches are the quickest to success. It’s all good, and glad to hear you worked it out.