Custom posts, and permalinks, etcetera.
-
My apologies for posting something so vague, but my brain seems to have stopped functioning and I’ll appreciate any advice I can get.
I’ve usually published my sites using a static front page and ‘notes’ as a posts page, with a permalink structure of /notes/%postname%/ relative to the root.
So I get post urls of sitename/notes/post-name.
All fine. I understand this.
Now, I think I need to use custom posts to create a schedule – the entries for which I don’t want mixed in with the other posts.
If I’ve understood things, with my existing set-up I think permalinks for custom posts would have to include /notes/ and hence be /notes/[something]/%postname%/.
This I don’t want, and need something on the same level as /notes/ rather than below it.
So, to avoid this I think I need to move the posts up a level, changing the permalink structure for posts to /%postname%/ so that the permalinks for custom posts can then be be [something]/%postname%/.
(If I’m wrong on this, and there’s a way to get the permalinks for custom posts on the same level as the other posts I’ll welcome it.)
But, I’m stuck on how to revise my posts page… I still want the url /sitename/notes/ to show posts.
So, having searched and trial-and-error diddled-around with this, I added a category of ‘notes’ into which I’ve added all posts, then experimented with various things including removing the category slug… but can’t get it right.
I’m sure I’ve done something like this previously, using query_posts to display posts from a category to get things behaving ok. But I can’t remember how, and have never been sure that what I did was sensible anyway.
The topic ‘Custom posts, and permalinks, etcetera.’ is closed to new replies.