• Hello,

    I’ve built themes with custom post types for portfolios and such but I’ve been doing it incorrectly… directly into the theme not a plugin, sorry. Time to fix it.

    I’m ok with registering the shortcode, creating post types, taxonomies and such but struggling (with my thought process) on how to handle a shortcode that’ll output a portfolio single / paged display page that I would normally build into a custom page template.

    /portfolio/ – A standard page template with the portfolio shortcode to display the items, each would link to a “single” portfolio post page.

    /portfolio/item-single/ – Like a single post page (with next/prev/etc)

    Many tutorials I’m finding are quite outdated or flat out sketchy, maybe there are some simple, solid plugins I can review for ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hhins

    (@hhins)

    After more searching, I think my question boils down to – displaying custom post types without a custom page template.

    I just keep finding tutorials on using a page template, which isn’t ideal since I don’t think bundling a page template with a plugin should be needed.

    Moderator bcworkz

    (@bcworkz)

    If you do not supply a template, the theme’s default page template will be used… whatever that might be, you can’t know. If your content is straight text, it’s probably fine. If it’s more complicated, you may run into issues, but you may never hear about them.

    If it helps any, a custom template can reside in the plugin folder. As long as the correct path is placed in the CPT’s metadata, it will load just fine. It just will not show up in the template pulldown of the page edit screen, which can be a good thing.

    Though a plugin template is less than ideal, it’s not really that big an issue IMO.

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

The topic ‘Portfolio Plugin Shortcode Thoughts’ is closed to new replies.