Support » Fixing WordPress » category.php

  • Hi all ,
    I am having a problem that my category.php is not working at all . Whenever i choose a single category ‘localhost/wordpress?cat=3’ it is not showing the content what i’ve written in category.php …. Pls help me …
    Here is my category.php code

    <?php
    /**
     * Category Template
     *
     * The archive template is the default template used for archives pages without a more specific template.
     *
     * @package Hatch
     * @subpackage Template
     */
    
    get_header(); // Loads the header.php template. ?>
    
    <?php single_cat_title(); ?>
    <?php get_footer(); // Loads the footer.php template. ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Where are the functions defined, the 3 in the sample code ..

    get_header();
    single_cat_title();
    get_footer();

    You will have to do a php ‘include’ or ‘require’ , so that the php files containing those functions are included.

    does the category archive show the category title?

    there is no further code in your posted snippet to show any content.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘category.php’ is closed to new replies.