Multiple custom "pretty permalinks"
-
The situation I have is this: Currently the main part of my site is hand-coded in PHP files, with server-side redirects for specific sections. The blog is in WordPress inside a folder named “journal”. I am currently reworking my theme to move the entire site into WordPress. I want to keep the current folder structure (created by the actual folder for the blog and the virtual folders created by the redirects) as much as possible so I don’t break the various promotional links distributed all over the web.
Everything was working perfectly until the other day when I upgraded to 3.2.1 when the rewrite for my custom post type stopped working and now just returns “Index: Sorry, no posts matched your criteria”.
After much experimenting, it looks like the issue is most likely not in my custom post type code, but in the custom permalink structure I have in place. Currently my permalinks are set to:
/journal/%year%/%monthnum%/%day%/%postname%/
If I reset the permalinks to use a non-custom version, I can see my custom “works” posts; as soon as I set it back to the custom URL, I can’t. If I turn off my custom rewrite it works, but shows up as /journal/music/work-name, when I need it to be /music/work-name.
So my question, I guess, is, is there anyway to change the permalink just of posts as a rewrite, rather than changing the actual permalink structure? Or am I barking up the wrong tree entirely? I’ve searched all over the web to try to find an answer to this – I’ve tested all sorts of permutations of permalink settings, rewrite settings, even deleted my .htaccess and nothing seems to be resetting things back to the way they were before when everything worked fine. The code itself and all the settings are identical now to what they were when they worked, but no joy. Could this be a known problem with 3.2.1? I’m not sure which version I had before, but I created the test site about 4 months ago so it would have been whatever was around then, I guess.
Any suggestions most gratefully received!
The topic ‘Multiple custom "pretty permalinks"’ is closed to new replies.