Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Post Type Templates #12

Open
prionkor opened this issue Jun 26, 2017 · 2 comments
Open

Support for Post Type Templates #12

prionkor opened this issue Jun 26, 2017 · 2 comments

Comments

@prionkor
Copy link

prionkor commented Jun 26, 2017

https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/

How do we add support for post type template?

use filter theme_{$post_type}_template in the class.

@WPDevHQ
Copy link

WPDevHQ commented Aug 4, 2017

@prionkor If you are still looking for this have a look at
https://github.com/WPDevHQ/ElemenTemplater/blob/master/elementemplater-class.php#L46

@mohamdio
Copy link

@prionkor check out my new composer package wp-templater created upon this class which support any post type filter and another additional features.

How to use this new Templater

Github repo
Composer package

I hope this will be useful for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants