Destaques duplicados.
-
Pessoal, meu WordPress atualizou recentemente e desde então estou tendo esse problema com os destaques do meu site, que estão duplicados. Continuo procurando uma solução e a fazer testes, mas nada da certo. Se alguém poder me ajudar eu agradeço.
Vocês irão notar o problema logo de cara quando entrarem no site.
Abaixo está o meu Destaque dentro do Index.php
<?php get_header(); ?> <div id="container"> <div id="content"> <div id="destaque"> <div class="destaque-post"> <?php query_posts('category_name=destaques&offset=0,1&showposts=2'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> <div class="destaque-info"> <ul> <li class="dest-autor" ><?php the_author(); ?></li> <li class="dest-views" ><?php if(function_exists('the_views')) { the_views(); } ?></li> <li class="dest-coment" ><?php comments_number('0','1','%'); ?></li> </ul> </div> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <?php endwhile; else: ?> <?php endif; ?> <div class="list-dest"> <ul> <?php query_posts('category_name=destaques&offset=2,3&showposts=2'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </li> <?php endwhile; else: ?> <?php endif; ?> </ul> </div> </div><!--/ fim destaque-post --> <div class="destaque-post right"> <?php query_posts('category_name=destaques&offset=4,5&showposts=2'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> <div class="destaque-info"> <ul> <li class="dest-autor" ><?php the_author(); ?></li> <li class="dest-views" ><?php if(function_exists('the_views')) { the_views(); } ?></li> <li class="dest-coment" ><?php comments_number('0','1','%'); ?></li> </ul> </div> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <?php endwhile; else: ?> <?php endif; ?> <div class="list-dest"> <ul> <?php query_posts('category_name=destaques&offset=6,7&showposts=2'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> </li> <?php endwhile; else: ?> <?php endif; ?> </ul> </div> </div><!--/ fim destaque-post --> </div><!--/ fim destaque -->
- O tópico ‘Destaques duplicados.’ está fechado para novas respostas.