Forums

Assign templates to custom post types (1 post)

  1. duncanm
    Member
    Posted 6 months ago #

    Hello all,

    First-time poster, glad to be here.

    I have a question about Simon Wheatley's plugin Custom Post Templates. I'm using it in conjunction with the excellent Custom Post Type UI by WebDev Studios.

    What I'd like to do is write a little code in functions.php to make each of my custom post types I've created with the Custom Post Type UI plugin automatically default to a specific one of the templates which have been made available by Custom Post Templates.

    I have a feeling this is a matter of finding the right hook and writing a function which matches a post type with a template, but I'm fairly new to the WordPress infrastructure. Is there someone out there who can help?

    Thanks so much,
    Duncan

Reply

You must log in to post.

About this Topic