• So, I’ve read the documentation and understand how to call the image (more or less), but I’m a little confused as to how to implement it in the category archives page.

    This is what is there right now (before messing with the featured image), which is the default Twentyten set-up for the Category Template:

    <?php
    $category_description = category_description();
    if ( ! empty( $category_description ) )
    echo ‘<div class=”archive-meta”>’ . $category_description . ‘</div>’;

    /* Run the loop for the category page to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-category.php and that will be used instead.
    */
    get_template_part( ‘loop’, ‘category’);
    ?>

    I’m assuming this (from the Category Template) is not where I call the thumbnail, but I instead have to call it in some other php file. Is that correct? The main loop file, I’m guessing? If so, where in the main loop file do I put it? I only want the excerpt and featured image on the Category pages, so does that change anything I edit in the loop?

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The main loop file, I’m guessing?

    Yes – loop.php In the section commented as <?php /* How to display all other posts. */ ?>

    However, if you edit this template file in TwnetyTen, your changes will be overwritten the next time you update the theme or WordPress. You’d be better off creating a Child theme with it’s own loop-category.php file.

    Thread Starter pubsforplebs

    (@pubsforplebs)

    Thanks for the answer! Sorry for the delay in response–I completely forgot I’d created this thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured Images in Category Templates’ is closed to new replies.