Block is not showing up in a custom taxonomy page template

I am using Drupal 7
I have a content type courses. I have a page folder in template folder, with courses.tpl.php file. When i go to courses page it is showing contents from courses.tpl.php. Issues is that courses.tpl.php is not rendering blocks.

I checked region in info file. I cleared cache etc, but block is not rendering.
I am not sure, if this page is a taxonomy page. ‘footer_testimonials’ is the block i am trying to render in this page, but it is not showing up.

‘footer_testimonials’ is showing up in page.tpl.php but not in courses.tpl.php

<div id="innerCourse_area">
    <div id="searchbox">
    <?php print drupal_render(drupal_get_form('course_searchbox'));?>
    </div>
    <div id="innerTopRight_info"><?php print $page['page']['course_page_top_ad']['block_1']['#markup'];?></div>
    <div class="clearfix"></div>
    <h4>Popular Courses: <em>Certificate IV in Bookkeeping, Diploma of Accounting, Diploma of Business, Advanced Diploma of Accounting</em></h4>

</div><!--end inner course area-->
<div class="innerRightCol">
<h1>Courses</h1>
<div class="contentInfo">
    Central College Distance Education offers a range of Government and Industry Accredited courses ready to help launch your career.  Remember, Central College has been launching careers for over 30 years.  You may also be interested in our specialty Central College Certificates that will help you better manage your existing business and do it in your own time at your own pace, right in the comfort of your home.


</div>

<?php
//$taxoTerm = course::get_taxonomy_term(1);
$categories = course::getAllCategories();

foreach($categories as $category):?>
    <div class="course_cats">
        <div class="taxo_term"><h3><?php echo $category->name;?> Courses</h3></div>
        <div class="taxo_courses">
            <?php //get courses by taxonomy
                $courses_term = course::courses_by_term($category->tid);
                $i = 0;
                foreach($courses_term as $course):
                $courseObj = course::getCourseByNid($course->nid);
                    $i++;
                ?>
                <li><a href="<?php echo course::courseUrl_alias($course->nid);;?>"><?php echo $courseObj->title;?></a></li>
                <?php endforeach;?>
        </div>
    </div>
<?php
if($i%2==0):
    echo '<div class="clearfix"></div>';
endif;


endforeach;
?>
<div class="clearfix"></div>
</div><!--end innerRightCol-->

<div class="innerLeftCol">
    <h2>Testimonials</h2>
    <div>
<?php print render($page['footer_testimonials']);?>
    </div>
</div><!--end innerLeftCol-->
This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Block is not showing up in a custom taxonomy page template

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.