-
Notifications
You must be signed in to change notification settings - Fork 5
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
wpbp_get_template_part name issue #1
Comments
Where is this code? I think inside the method |
i have for example
and it should load for 'artists' cpt the artists.php file on line 34 you test for a file but not for the variant without any name specified |
Seems that the check is on https://github.com/WPBP/template/blob/master/template.php#L39 and on https://github.com/WPBP/template/blob/master/template.php#L30 |
Uh okay is a bug this search on plugin folder but not on the theme, I will release asap a new version. |
Can you check if this patch resolve the issue: https://github.com/WPBP/template/blob/master/template.php#L34 |
yes is ok |
if i don't specify a 'name' the template doesn't get loaded you need a additional condition
something like
The text was updated successfully, but these errors were encountered: