Hello.
First of all thanks for a great Theme!
I am having trouble with overriding the post template of a custom post type. I have read through many of the forum post but to no avail.
Basically I have a post type called ‘wood-cabinets’ and these are the steps I have taken.
-
Copied single.php from X and pasted it in the root folder of child theme.
Renamed single.php to single-wood-cabinets.php
Edited this line <?php x_get_view( x_get_stack(), 'wp', 'single' ); ?> to <?php x_get_view( x_get_stack(), 'wp', 'single-wood-cabinets' ); ?> -
Copied wp-single.php from X renew folder and pasted it in the renew folder of child theme.
Renamed wp-single.php to wp-single-wood-cabinets.php
Edited this line <?php x_get_view( 'renew', 'content', get_post_format() ); ?> to <?php x_get_view( 'renew', 'wood-cabinets', get_post_format() ); ?>
No matter what I cannot get it to work.
I can get the override to work in general not using the custom post type slug but not with the custom post type.
I have also tried using ‘wood_cabinets’ instead of ‘wood-cabinets’ but still nothing.
Assistance would be greatly appreciated
Thanks!