• Hi All,
    Since updating my wordpress from 2.9 to 3.1 (The theme doesn’t like WP version upgrades so we go nice and slowly ;).

    We’ve had a Category name which WAS showing, but now, is not.
    The code concerned is this:

    // enter the IDs of which categories you want to display
    $display_categories = array(6);
    foreach ($display_categories as $category) { ?>
        <div class="clearfloat">
          <?php query_posts("showposts=4&cat=$category");
    	    $wp_query->is_category = false;
    		$wp_query->is_archive = false;
    		$wp_query->is_home = true;
    		 ?>
          <h3><a>">
            <?php
    	// name of each category gets printed
    	 // single_cat_title(); ?>
            </a></h3>
          <?php while (have_posts()) : the_post(); ?>
          <?php

    Category ‘^’ posts and title names are showing but the category title, above the posts, is not.

    I’m not sure if the answer is posted here: http://wordpress.org/support/topic/single_cat_title?replies=3

    So can anyone help out with some code I need to replace please.

    Many Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you aware that using that old a version of WP is a MAJOR security risk?

    What theme are you using?

    Thread Starter bethelgorse

    (@bethelgorse)

    Yes I know. Its not a huge traffic site anyway.

    We are using BranfordMagazine theme by Michael Oeser.The free version that was pulled ages ago.

    We will be upgrading soon. Just need this sorted while I work on the paid version upgrade.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Category Name to Show’ is closed to new replies.