Editing my loop-page.php causes posts to show on all pages
Editing my loop-page.php causes posts to show on all pages
Editing my loop-page.php causes posts to show on all pages
I think the best way is hooking to the filter template_include https://developer.wordpress.org/reference/hooks/template_include/ You’ll find some exmple at https://markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates/
Is it possible to set archive.php instead of index.php to display blog?
WordPress 2022 template, how to see the blocks added in post template on post edit?
Loading Elementor templates in a Bootstrap modal on button clicking
Please help me clear my confusions about WordPress
Create custom page to author.php
WordPress Template Reverts to default template after changing
there are many hooks you can use to change certain code on archive pages. see here it is not recommended to change template files, but if you need to, create the copy of archive-product in the child theme with same folder structure as parent theme. this will affect all archive pages, shop, archive and tags. … Read more
How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?