Problems With Query and/or Template Part and/or PHP
Problems With Query and/or Template Part and/or PHP
Problems With Query and/or Template Part and/or PHP
http://ottopress.com/2008/wordpress-2-7-comments-enhancements/ You can ignore the references to legacy stuff. That was posted 6 years ago, we’re past the need for pre 2.7 support.
WordPress templates bug
Auto-Create Pages from Template Directory
Your title makes me wonder if you are using a Custom Post Type. If that is the case WordPress may be looking for a template for the Custom Post Type archive instead of the category. Check out Post Type Templates to see if that helps a bit. If you need a certain category inside a … Read more
Posts page template: How can I edit the markup for this?
Such an interesting question, I will be keen to see the other responses. I am sure their is a more elegant solution but I would just hook into the wp admin css and hide those pages from the users view like this. // Hook into the admin head add_action(‘admin_head’, ‘hidepages_css’); // Add our custom CSS … Read more
Adding The Post Template Dropdown to WP-Admin
There are no hooks in the load sequence triggered by get_template_part() that will help you. get_template_part() locate_template load_template And locate_template() is hard-coded to look at theme files. I hate to write “you can’t do that” answers, but I honestly don’t see a way to override what file get_template_part() loads.
Even if you specify a static page for your Posts page in Settings > Reading, WordPress will still use index.php to construct the post-listing page. I don’t think it is possible to override this using a custom page template.