When to use content-pagename.php?

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

Locating the template behind a WordPress Page

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

Creating page-templates directory breaks everything!

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)