Support » Fixing WordPress » Display archive/search/tag results with just a thumbnail and/or excerpt?

  • I’m not a web designer by any stretch of the imagination. Our theme was designed using Arister, and I’m trying to figure out how to display the results from search/archives/tags/category in a grid style thumbnail layout (preferred) or a list with just the thumbnail and description.

    All our pages display everything in the standard blog format.

    The website is Girls 4 Ganja (http://girls4ganja.com) and we appreciate any kind support you could give!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can create some thing like this

    <?php while (have_posts()) : the_post(); ?>
    
    <div style="float:left;">
    <img src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" />
    </div>				
    
    <div style="float:right;">
    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    <?php the_excerpt(); ?>
    </div>
    
     <?php endwhile; ?>

    Here you have a thumbnail and an excerpt.

    You will need to create a custom field called thumbnail.

    Thread Starter blaiz247

    (@blaiz247)

    thanks. do you know which file and where you would put that code? sorry, i’m just a little scared to f up our site…

    Always make backups before editing files and then you can always revert if something goes wrong.

    You can edit the archive.php file within your theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display archive/search/tag results with just a thumbnail and/or excerpt?’ is closed to new replies.