WordPress.org

Ready to get started?Download WordPress

Forums

ADD IMAGE SIZE (2 posts)

  1. dragonsjaw
    Member
    Posted 2 years ago #

    I am using :
    add_image_size( 'category-post-thumbnail', 100, 160 );
    in functions and

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    			<div class="entry-summary">
    			<?php the_post_thumbnail('category-post-thumbnail'); ?>
    			<?php the_excerpt(); ?>

    in a category-loop.php page to call the thumbnails set by the set featured image.

    I want these thumbnails to also be included with the excerpt on archives and tag pages.

    So do i just add to functions:
    add_image_size( 'archive-post-thumbnail', 100, 160 );
    add_image_size( 'tag-post-thumbnail', 100, 160 );

    (I am not sure if that is the correct naming?)

    Then of course make a archive-loop.php
    and tag-loop.php to call them??

    It took me a long time getting the category one to work..
    whew.

    Using a child of twentyten.

    thanks

  2. dragonsjaw
    Member
    Posted 2 years ago #

    Yes and yes.. works.

Topic Closed

This topic has been closed to new replies.

About this Topic