Forums

category.php (3 posts)

  1. SannySinghs
    Member
    Posted 3 months ago #

    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. ?>
  2. pete_398
    Member
    Posted 3 months ago #

    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.

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 months ago #

    does the category archive show the category title?

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

Reply

You must log in to post.

About this Topic