• 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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%/.

    @gulliver, when you register a custom post type, you can set the with_front argument for the rewrite parameter to false, and that should keep the /notes bit out of those custom post type permalinks:

    'rewrite' => array( 'with_front' => false ),
    Thread Starter gulliver

    (@gulliver)

    Ah! Excellent.
    Thanks – you’ve helped preserve some of my remaining sanity.

    You’re welcome!

    Thread Starter gulliver

    (@gulliver)

    Thanks.

    I wish this forum allowed me to try to contact you to ask about hiring you to sort some stuff for me, but having read ‘requesting paid help is discouraged’ I’ll respect that. Pity.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom posts, and permalinks, etcetera.’ is closed to new replies.