Custom Post Type Template Alternative

You may not completely get out without using a template file. I might be wrong!!. But, by using get_template_part in your single-product.php you will be able to use page-three-column.php file. So in your single-product.php something like this should do. <?php get_template_part( ‘page-three-column.php’ ); ?> You may refer to the Codex here.

Do I need to use The Loop on pages?

According to the Theme Guide, full loops should be used, even on single templates. Full loops must be used in all templates. Just calling the_post() in a template like single.php or page.php is not enough. So yes, it’s a best practice to use full loops.

Custom Plugin theme filter

The page_template is a filter, not an action. Specifically it’s filtering the file path of the template to be included. So really you shouldn’t be loading anything in that callback (it’s too early). Instead just return its file path. add_filter( ‘page_template’, ‘load_tq_templates’ ); function load_tq_templates( $template ) { if ( is_page( ‘transport-quote-1’ ) ) { … Read more

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