WordPress custom pages in a folder
I cant find something similar
I cant find something similar
The hierarchy picture doesn’t tell me exactly which one is dominant.
I’d like to know it’s possible to do something like this
Through a plugin, I have created a custom post type named “my_custom”.
I am currently developing a theme in wordpress for learning purposes.
I know woo-commerce has it’s own way of providing custom php templates in a child theme for its various views. I’m wondering if all plugins adhere to a standard way doing the same. For example, I’m using a plugin with a template located at wp-content/plugins/PLUGIN_NAME/templates/view-x.php. Is there a standard location in my child theme that I can create my own custom view-x.php that will override the default version? Or does it vary from plugin to plugin?
I’m really confused with index.php, home.php and front-page.php. In many cases even though I had an index.php, I overwrite it with front-page.php. But recently, I became aware about home.php.
I’m developing a Custom Post Type plugin, which works fine in dev. Now that I’ve moved it to production, I’m getting a 404 when I try to display the template for the CPT.
I would like to have a different template for categories and subcategories
The categories template is set in categories.php
is it somehow possible to load the subcategories template from subcategories.php or something like that?
When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article.