get_header action not working

You can use a conditional logic. E.G. <?php if ( is_home() ) : get_header( ‘home’ ); elseif ( is_404() ) : get_header( ‘404’ ); else : get_header(); endif; ?> The file names for the home and 404 headers should be header-home.php and header-404.php respectively. So in your page-template just add get_header( ‘newtmpl’ ); dunno why … Read more

Same comments on all posts

I was able to reproduce the issue. It’s being caused by the loop in your code: <?php if (have_posts()): ?> <?php while (have_posts()): ?> Replace that standard loop with if ( have_comments() ) {…, like this: <?php if ( have_comments() ) { ?> // The title, content and some other html here wp_list_comments(array( ‘callback’ => … Read more

Multiple editable areas

You can add more meta boxes – with simple text field editors or TinyMCE editors with more functions – in admin, and then call those meta boxes in your page template. This is a very common thing to do in WordPress, both in a UX sense for the user to be able to add content, … Read more

Changing the Organize Series Listing Pages

The template for the Series taxonomy is your-theme/taxonomy-series.php. Generally speaking, taxonomies use the taxonomy-{taxonomy-name}.php template which is outlined in the Template Hierarchy article in the Theme Development handbook. The diagram in that article is particularly helpful with determining what template WordPress is loading. I double checked how the plugin registered the taxonomy by searching the … Read more

Using bloginfo and divs inside a php file

I assume you’re wanting an image tag in there too: if ( $colors && in_array( ‘green’, $colors ) ) { echo ‘<div class=”asdsf”><img src=”‘; echo bloginfo(‘template_directory’) . ‘/path/within/theme/to/img.png’; echo ‘”></div>’; } But it’s better to use the newer get_stylesheet_directory_uri() which will work whether or not you are using a child theme. if ( $colors && … Read more