WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Creating Sections for Post Types (5 posts)

  1. AlecRust
    Member
    Posted 1 year ago #

    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.

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    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.

  3. AlecRust
    Member
    Posted 1 year ago #

    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?

  4. Andrew Bartel
    Member
    Posted 1 year ago #

    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.

  5. AlecRust
    Member
    Posted 1 year ago #

    That's fair enough, thanks for your input.

Topic Closed

This topic has been closed to new replies.

About this Topic