How can I add a custom header to a custom template in a plugin without using the theme folders

The get_header() functions is designed for themes. It usually look for header file in child theme first and then parent theme. You should be creating custom header under theme directory instead of in a plugin. But if you really must have to load header file from plugin then you have to create a custom function. … Read more

Using Custom Templates for Custom Post Types for the Genesis Theme Framework?

Turns out I was wrong, Genesis does support using the page_posttype.php method of creating a custom template. It turned out to be very simple. Here’s the contents of my page_members.php file (located in the child theme folder): <?php /* Template Name: Members */ remove_action(‘genesis_loop’, ‘genesis_do_loop’); add_action(‘genesis_loop’, ‘custom_loop’); function custom_loop() { global $paged; $args = array(‘post_type’ … Read more

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