Page template not registering on theme

Might be a difference in query methods. This is a simpler way to query a page’s content and can be used multiple times in a template without each query conflicting with each other. <?php $my_query = new WP_Query(‘page_id=2’); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_content(); ?> <?php endwhile; ?>

what is template-name.php

I always name them like so: page-name.php; This keeps my page templates nicely together + in some cases this can make your code easier, for example… <?php // Get the file called loop-page.php get_template_part( ‘loop’, ‘page’ ); ?> A quick Google revealed also this http://wp.tutsplus.com/tutorials/organizing-and-naming-your-themes-template-files-for-clarity-and-convenience/ Cheers

Which template.php for /blog

Use home.php, that’s the template for the list of newest blog posts. It will not affect the URL. If you go to wp-admin/options-reading.php and choose a page for Posts page – this page will use home.php. So create a static page, assign the URL /blog/ and select it in the settings. WordPress will take care … Read more

Help Understanding Template Hierarchy

Template hierarchy consist of templates, but not every template file is necessarily in hierarchy. Essentially hierarchy determines entry points (one of matching templates with pre-defined name structure), but from there template can further load additional arbitrary files. page-templates directory holds custom templates for pages (is_page() branch in hierarchy). It’s recent development that they can now … Read more

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