How do I force a CPT to select a shared custom template in Post Attributes?
How do I force a CPT to select a shared custom template in Post Attributes?
How do I force a CPT to select a shared custom template in Post Attributes?
Edit: I see you’ve answered your own question, but the answer you provided seems dubious to me, so I’m going to post this anyway. A child theme needs a few key elements to work: a style.css with header information (including Template: parent-theme-name), a functions.php file (where you can enqueue the parent theme’s stylesheet), and activation … Read more
The link you provided was a category page. When I went to a product page, the add to cart and options were visible.
content-product_cat.php is the equivalent template for the category thumbnails. You want to copy templates/content-product_cat.php to your theme and modify it, the same way you presumably did for content-product.php. As with the product template, though, the only HTML in the template is the <li> tag. The rest is output through hooks.
Why wordpress custom template comments shows Undefined index?
Display a custom 404 page without a redirect
I think that you’re over engineering the problem here. If all you need to do is get the appropriate archive template, whatever that may be, then use get_archive_template() although you may need to use the {$type}_template_hierarchy filter on get_query_template() to add index.php to the possible results.
front-page.php includes a placeholder text field. How to get rid of it?
Why does a custom php code inside a custom template not get executed?
Accidentally deleted code in header.php