WordPress.org

Ready to get started?Download WordPress

Forums

Show images in archive/category view? (2 posts)

  1. salomonmeijgmailcom
    Member
    Posted 8 years ago #

    I've been trying to figure out how to show images in the archive and category views, I've found out that you're supposed to change

    <?php the_excerpt(); ?>

    to

    <?php the_content(); ?>

    in the archive.php file. Thing is, there's no excerpt thing in my archive.php file. This is the code in the file:

    <?php get_header(); ?>

    <div class="content">

    <?php include(TEMPLATEPATH . '/leftbar.php'); ?>

    <div id="primary">

    <?php include (TEMPLATEPATH . '/theloop.php'); ?>

    </div>

    <?php get_sidebar(); ?>

    </div>

    <?php get_footer(); ?>

    Any ideas how I can get images to show? Thanks!

  2. moshu
    Member
    Posted 8 years ago #

    <?php include (TEMPLATEPATH . '/theloop.php'); ?>`

    So, did you try to look into theloop.php? Some smart*** theme authors place the Loop in that file instead of the index/archives etc.

    The disadvantage of this is that if you modify it, it will affect all the other files, that's why I think it's a stupid coding.
    You will have to use a conditional or move the Loop to the archive.php to replace the call.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags