I have a series of pages with the heirarchy:
ie. all these pages have a parent page with the slug 'albums'.
If I have a permalink /name2 it shows the page /albums/name2. I didn't need to fully express the link as /albums/album2
I also have a post_type called 'songs' which is not hidden, but would be far less often visited.
So there are Pages and 'Songs' with the same slug. In the past, simply typing
mysite.com/name2 would bring up the -Page- (ie. /albums/name2), not the Song. This has changed. Now, if I type:
mysite.com/name2 into the browser, /songs/name2 appears.
So the precedence of 'Songs' appears now to be higher in the redirection 'hierarchy'.
How can I change it back to the way it was... ie. when a visitor types:
mysite.com/name2 into the browser, the -Page- /albums/name2 appears?
I have experimented with all number of values for the Rewrite array to no avail for the simple reason that it's not the permalink that is the issue, it is the fact that in the WP_Rewrite Rules, the 'Songs' post_type is processed -first- for some reason, so if there are two posts with the same slug, one 'Page' and the other 'Song', the Song will be rendered.
I have been working around this by simply setting the Public property for 'Songs' to false, but that's no long term solution.