• I’m currently running a plugin that displays a list of related content. In the div next to it, I have my most recent reviews displayed with the excerpt and thumbnail. I want the two to look more uniform. Is it possible to do this?

    The plugin script looks like this:

    <?php wp_related_posts(); ?>

    And here’s my recent reviews script:

    <?php query_posts('showposts=4&tag=review&cat=-161,-11'); $i = 1; ?>
    
          <?php while (have_posts()) : the_post(); ?>
    	<div class="clearfloat">
    	<?php	$values = get_post_custom_values("Image");
    	if (isset($values[0])) { ?>
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=65&h=65&zc=1&q=65"
    alt="<?php the_title(); ?>" class="left" width="65px" height="65px"  /></a>
          <?php } ?>
    	<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
    <?php the_excerpt(); ?>
    </div>

    I’ve made a few attempts, but mostly just shots in the dark. Any help?

  • The topic ‘Possible to combine these elements into a plugin?’ is closed to new replies.