Using external file with WP_USE_THEMES set to false causing 404
Using external file with WP_USE_THEMES set to false causing 404
Using external file with WP_USE_THEMES set to false causing 404
Submit form to another template (ugly url)
I ended up adding this to my head: <? if (wp_is_mobile()) { include(TEMPLATEPATH . “/mobile/index.php”); return; } ?> And it worked out fine for my purposes.
Usually the format you see in themes are content-{$post_format-term}.php or content-{$pagename}.php, but it is not restricted to this formats. The naming convention can also differ to your liking as long as you keep it out of normal template hierarchy and then use get_template_part to call it correctly. These are not self standing templates, they cannot … Read more
Creating a popup
Figured it out, tag templates, and it worked out amazingly 🙂 http://codex.wordpress.org/Tag_Templates
Just an idea – have you tried putting something like this: <?php if ( current_user_can(‘manage_options’) ) { echo get_option(‘current_page_template’); } ?> You may be able to put it in the header so admins can see the template names of every page – although without testing I’m not sure – may have to go in the … Read more
When a page is assigned to a template, this template selection is saved in the post meta table under the key _wp_page_template. These template values are as follow default if no page template in explicitely set {$template}.php for templates in root subfolder/{$template}.php for templates in a subfolder where subfolder should be the name of the … Read more
I’m not sure you can – if you can’t make a child of a child theme ( which I’m fairly certain you can’t ) and the main theme doesn’t supply any hooks – the only real thing you could do is hook into get_footer(); but that may be too late.
Display different list of “Custom Templates” for each Custom Page Type