WordPress.org

Ready to get started?Download WordPress

Ideas

Custom post type page in Settings

  1. Hiranthi
    Member

    12345

    You can select a page in the General Settings of WP for the display of your posts. It would be ideal if you could link a page to custom post types like that too.

    Posted: 3 years ago #
  2. Mark Jansen
    Member

    I support this idea. It would be so much easier to be able to select a mother page for CPT's.

    Posted: 2 years ago #
  3. Hiranthi
    Member

    12345

    An example: if you have a portfolio site with portfolio_items as your CPT it would be awesome if you could select the Portfolio page as the page to display those CPT's on. Just as you can select a specific page for your posts.

    This would be ideal for permalinks (getting the slug of the main-page in there too) and for breadcrumbs too (actually get the page in there as the mother-page of the single-view cpt).

    Posted: 2 years ago #
  4. Hiranthi
    Member

    12345

    The current status is "This is plugin territory", but I don't agree with that. The functionality of this for posts is already in core, I don't understand why that should be different for CPT's.

    Posted: 2 years ago #
  5. Hiranthi
    Member

    12345

    Another issue that wouldn't happen when we could select motherpages for CPT's: at the moment the Post-page is getting the 'current_page_ancester' etc. classes when you're viewing a single-CPT.

    This should not happen, since a CPT is not the same as a post.

    Posted: 2 years ago #
  6. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    CPTs are post-types, which means you have to create them as children off a parent, rather than assign them like you do pages.

    You can't, currently, do it the other way.

    The reason this is flagged as 'plugin territory' is because adding in CPTs at all is something you must do via a plugin or theme. Unless that changes, we cannot add in a setting for something you may not have, it would cause issues.

    Posted: 2 years ago #
  7. Hiranthi
    Member

    12345

    Yes, adding CPT's is done through plugins, or code inside the functions.php, but it is most certainly possible to add settings for them, whether they've been added through core or not. Looping through the registered CPT's would be the way to go.

    At the moment it's working extremely illogical as it looks at the assigned Posts-page as the "parent". This is very confusing for end-users and visitors (wrong menu-item getting the parent/ancestor class).

    I understand this isn't as easy to implement as it may sound, but I do believe that it should be added to the core.

    Posted: 2 years ago #
  8. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    What I'm saying is that until, and unless, adding CPTs in general is a part of core, this is plugin territory. Cart has to come after the horse.

    There are plugins to allow moving posts between post-types (I've used them before).

    http://wordpress.org/extend/plugins/post-type-switcher/

    Posted: 2 years ago #
  9. Hiranthi
    Member

    12345

    I know of that plugin and I've used it myself, but this isn't the issue. We're not talking about moving posts between post-types.

    We're talking about the ability to select a page that displays a specific CPT and that per CPT, just as you currently can for posts. Something entirely different.

    Posted: 2 years ago #
  10. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    We're talking about the ability to select a page that displays a specific CPT and that per CPT, just as you currently can for posts.

    Yeah, I read that, a few times, and I don't think I get what you're saying.

    Do you mean an ARCHIVE page for the CPTs? That's built in.

    Posted: 2 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    6 Votes
  • Status

    This is plugin territory