Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

LuHciAno

Problema com single.php

Recommended Posts

pessoal boa tarde,

seguinte estou fazendo um portal .. e estou enfrentando um problema..

 

no meu portal existe um feature que fica no header.php

 

o codigo e esse:

 

<div id="feature">
                <div id="feature-img">
                <?php query_posts('showposts=1&cat=8');?>
                <?php if (have_posts()): while (have_posts()) : the_post();?>
                    <div class="imgD">
                        <img src="<?php echo get_option('home');?>/<?php $key="feature";echo get_post_meta($post->ID,$key,true);?>" title="<?php the_title();?>" alt="<?php the_title();?>" width="634" height="297" />
                    </div>
                    <div class="bgTilt">
                        <h1><?php the_title();?></h1>
                        <p><a href="<?php the_Permalink()?>" title="<?php the_title();?>" alt="<?php the_title();?>"><?php the_excerpt_rereloaded(20);?></a></p>
                    </div>
                <?php endwhile; else:?>
                <?php endif;?>
                </div>
                <div id="designgrafico">
                    <img src="<?=bloginfo('template_url')?>/images/design_grafico.jpg" />
                    <div class="designFeature">
                    <?php query_posts('showposts=3&cat=3,4,5,6');?>
                    <?php if (have_posts()): while (have_posts()) : the_post();?>
                        <img src="<?php echo get_option('home');?>/<?php $key="feature";echo get_post_meta($post->ID,$key,true);?>" title="<?php the_title();?>" alt="<?php the_title();?>" style="margin:10px 5px 5px 0;" width="88" height="64" />
                        <h1><?php the_title();?></h1>
                        <div id="clear"></div>
                <?php endwhile; else:?>
                <?php endif;?>
                    </div>                    
                    
                </div>
                
</div>

e no index.php vem o conteudo do portal..

 

quando eu coloco esse feature na pagina inicial do portal fica perfeito.. tudo aparece no seu devido lugar..

mais quando clico em um artigo so mostra o mesmo post sempre..

 

ja detectei que o problema e o feature pois retirei do codigo e ficou tudo legal.. clicava no artigo e ele abria correto..

ai coloco o feature e sempre abre o mesmo..

 

olhe no meu site..

 

http://www.braziltutoriais.com

 

vou deixa o feature para vocês verem o que acontece..

cliquem nos artigos...

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.