• Hi

    I am very sorry if I’m asking about something that has already been answered a million times, but I just can’t figure this out:

    When clicking on the archive or categories links on my page, the page I get up doesn’t show images, only text. Since I have a photo blog this is quite useless. How do I get the images to be displayed on these pages?

    I tried to make a search on this already, and I got some answers, but they seem to apply for older versions of wp or something. It was about changing some text in the archive.php or search.php page. But I couldn’t find the line in question.

    Am I just not seeing it or what’s happening?

    Very grateful for all help.

    A

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you have a link for your site? This could be any number of things but most likely your archive templates are using the_excerpt(). If you find that and replace it with the_content() all should be right with the world.

    I’ve had similar trouble controlling excerpts with some themes. If you can’t find where to make the change, there’s a plugin called Advanced Excerpt, it will allow you specify the content that shows up in the excerpt. If you set it to exceed the number of words in your posts (just enter a high number, even if you have no text) and tell it not to remove any mark up, it will show all your content in the archive/category view, including images.

    If you want thumbnails, you might try “Thumbnail For Excerpts”. In that case you wouldn’t need to use Advanced Excerpt, although you could get even more control with it, depending on hat you want to do.

    Thread Starter arnulf

    (@arnulf)

    That’s what I got from the other posts on the subject. The problem is that I can’t find where this code is. I’m using a pretty straight forward template called Twenty Ten. I’ve been looking under “editor” in the “appearances” on dashboard, but I just don’t find anything saying the_excerpt()

    the address of my page is http://www.linasofia.net if that’s any help.

    thanks for your time

    a

    The code for excerpts is in the loop with 2010, at the bottom of loop.php.
    look for

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

    and just change the_excerpt to the_content.

    Thread Starter arnulf

    (@arnulf)

    That’s what I was looking for. Thanks a lot!

    Cheers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Displaying photos on archive pages’ is closed to new replies.