• Hey guys,

    I would like to know how i can set up a custom url structure (with a clean wp installation) like this:

    |-Home (/ or /home/)
    |-Blog (/blog/ – listing articles)
    |–Blogpost #1 (/blog/blogpost-1/)
    |–Blogpost #2 (/blog/blogpost-2/)
    |–Category #1/ (/blog/category-1/)
    |–Category #2/ (/blog/category-1/)
    |-Imprint (/imprint/)
    |…

    Home, Imprint.. are regular pages and this works fine. How can i realize the separate blog url? I would like to run a portfolio site with wordpress and separate the blog posts under /blog#1/bla/ or /blog#2/fewfew with the aid of custom_post_types.

    Thanks!

    cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to create a page, called Blog, that houses and displays all of your blog posts.

    Then go to ‘Tools > Permalinks’ and use the second to last option (Post Name), or set up your own custom structure which will use that format.

    Thread Starter mschmidt2

    (@mschmidt2)

    Hey Evan,

    Your solution i tried this afternoon. Unfortunately it works only with ONE blog. If i use more than one blog (register_post_type) I get in trouble!

    I tested the “Enhanced Custom Permalinks” Plugin and register a custom_post_type. WordPress set the global permalink structure as root and set up a permalink structure like this: /blog/blog-2/. If i changed the structure directly in my database tables to /blog-2/, nothing works anymore and i get a 404 error no matter which link i visit.

    So you’re registering your own custom post type, named blog?

    How many post types are you registering?

    Also, custom post types (after being created) need a permalink refresh. Just go into your permalinks and hit save again.

    Thread Starter mschmidt2

    (@mschmidt2)

    Nope, blog referenced with /blog/%postname%/ to the regular post-type that came with the wordpress installation and blog-2, blog-3… (names are for example only!) are registered custom_post_types. I refresh the permalink structure unsuccessfully more than once after registering the custom_post_types in my functions.php.

    How many post types are you registering?
    I do not know yet but if it works only with one custom_post_types, i can rule the world with thousands of separate blogs 😉

    cheers

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

The topic ‘Custom Post URLs’ is closed to new replies.