WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Creating Sections for Post Types

[Resolved] Creating Sections for Post Types

  • I’m trying to create this page structure within WordPress:

    - Home                       (http://example.com/)
    - Blog                         (http://example.com/blog/)
        - Blog Post              (http://example.com/blog/blog-post-name/)
    - Projects                    (http://example.com/projects/)
        - Projects Post         (http://example.com/projects/project-post-name/)

    Following the WordPress Codex guide Making Your Blog Appear in a Non-Root Folder I’m able to create this structure:

    - Home                      (http://example.com/)
    - Blog                        (http://example.com/blog/)
        - Blog Post             (http://example.com/blog/blog-post-name/)

    But not the “Projects” section. The Codex documents how to move where your blog sits, but not handle different post types in this way.

    I’m trying to achieve “Blog” page as the index of all “Blog Post” posts, and “Projects” page the index of all “Project Post” posts.

    I haven’t set up my post types yet, since I assume the best way to do it would be based on the way these pages were set up. Any recommendations on that would be appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Bartel
    Member

    @andrew-bartel

    I would just use the built in post categories, set the slugs exactly how I want them when I create the categories and then update my permalink settings.

    Thanks for that. You think that approach is better than setting the default posts page to “Blog” and setting up a custom “Project” post type?

    Andrew Bartel
    Member

    @andrew-bartel

    I find custom post types are easy to overuse, at least for me. That said, if you need to simplify the editing screen or modify default behavior, ex: add heirarchy, they’re great. If you don’t need to do that, I just like to use the default categories as far as they’ll take me before it becomes easier to write a plugin or add CPTs.

    That’s fair enough, thanks for your input.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Creating Sections for Post Types’ is closed to new replies.