• Hello,

    I’m having a problem with the Feature images. They seem to work on the home page of my site, but they do not display under the categories links.
    I used this code and the images work fine in the home page. But I would like them to show for categories. Anyone know how to go about doing this. Thanks!

    <?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
      the_post_thumbnail();
    }
    ?>
    
    			<?php the_content( __( 'Continue reading &rarr;', 'twentyten' ) ); ?>
Viewing 6 replies - 1 through 6 (of 6 total)
  • where exactly is that code in the context of the whole template?

    have you checked, if you are using Twenty Ten, that the archives are using the excerpt – done with a conditional statement in loop.php ?

    Thread Starter wjrparks

    (@wjrparks)

    its within loop.php

    [code moderated - please use the pastebin]

    Pretty new to WordPress and only know enough about php to get me in trouble.

    Thread Starter wjrparks

    (@wjrparks)

    Well so far I found out that its supposed to be a backend option to display images under the categories list. Now where do I find the option to do that?

    Thread Starter wjrparks

    (@wjrparks)

    here are links to show what I’m trying to do, if you go here https://www.cutecurves.com you can see the images I placed for thumbs, these are ones I inserted into the post itself instead of featured image and they still don’t show under the models category https://www.cutecurves.com/?cat=6

    is there a fix for this, seems WordPress has many problems with it compared to Joomla.

    the ‘problem’ is with this code:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    
    			<?php the_excerpt(); ?>
    
    	<?php else : ?>

    the output of the excerpt is what is choosen in a category archive page.

    edit the conditional statement for instance to:

    <?php if ( (!is_category() && is_archive()) || is_search() ) : // Only display excerpts for archives other than category archives and search. ?>

    Well so far I found out that its supposed to be a backend option to display images under the categories list. Now where do I find the option to do that?

    I don’t think this is the case in Twenty Ten (or derivative themes)

    only know enough about php to get me in trouble.

    time to learn more, to be able to at least read the php code …

    Thread Starter wjrparks

    (@wjrparks)

    That works, Thanks!

    I’ll be buying me a php book ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Feature Images Not showing in Categories’ is closed to new replies.