• Custom post types are great and I use them all the time.

    Typically, I’ll create a plugin to hold the custom post types and associated taxonomies and, since the custom post types usually need to be formatted differently than my standard blog posts, I’ll add custom templates files to my child theme directory using the standard naming convention (single-book.php, archive-book.php).

    So, this works great for me but I’m about to start working on a multisite project and it recently occurred to me that I might run in to some trouble with this.

    All of the sites on the network will be sharing a child theme so I would like to avoid dumping those templates in the child theme that doesn’t apply to every site on the network.
    I would rather handle templates for individual sites entirely via plugins so I don’t have to clutter our child theme with a bunch of custom post type templates. Is this possible? As far as I know, there isn’t a way to specify single/archive template files on a per site basis via a plugin, they have to be included in the theme directory.

    I’d like to avoid some hacky solution if possible but I’m open to ideas.

  • The topic ‘Custom post type templates for multisite child theme’ is closed to new replies.