Bom dia, venho pedir-vos uma ajudinha...
Estou a utilizar o plugin
WP-PostRatings, juntamente com tema
CSS Gallery e queria que no
index aparecesse, acima dos últimos posts, um top com os 4 posts com votação mais elevada, mas que fosse buscar o thumbnail, tal e qual os "últimos posts".
Já coloquei este código
<?php if (function_exists('get_highest_rated')): ?>
<?php get_highest_rated('post', 0, 10); ?>
<?php endif; ?>
E assim já aparece o top, mas em lista sem thumbnails e não tenho controlo sobre de quantos posts é composto o top.Falta acrescentar código, para que o top apareça segundo essas permissas, mas ainda não tenho conhecimentos suficientes para saber qual...
O código para os posts aparecerem com os thumbnails, é
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="item" onmouseover="this.className='item2'" onmouseout="this.className='item'">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p><a href="<?php $values = get_post_custom_values("url"); echo $values[0]; ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("thumbs"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /></a></p>
<div class="clear"></div>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div><!-- Item Div -->
<?php endwhile; ?>
<div class="clear"></div>
<div class="Nav"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
<?php endif; ?>
</div><!-- End CONTENT Div -->
Se me puderem dar uma ajudinha, agradecia