• Resolved tameem

    (@tameem)


    Hi,

    When I click on a category link to view the archive category, I cannot figure out which template file is being used. I have inspected the markup and it is not the same as archives.php or archive.php.

    Some of the markup is like

    <div id="container">
                <div id="content" role="main">
    div class="entry-meta"

    None of my templates I have have any of that markup. I want to style and change the template file but cant find it! thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tameem

    (@tameem)

    help! anyone? Id like to figure this one out. Thanks!

    Thread Starter tameem

    (@tameem)

    Forgot about the fact that my theme was the child theme of WordPress’ twentyten theme. I found the template being used in the parent theme category.php. This is the template that was being used since category.php was not present in the child theme.

    To overload this file and use my own template I changed the fields to
    get_template_part( 'category', 'index' );

    This tells WP to look to the child theme first and use category.php to output category posts.

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

The topic ‘Category archives and template file’ is closed to new replies.