Ir para conteúdo

Arquivado

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

omor

Erro ao exibir pagina personalizada

Recommended Posts

Olá

Alguém saberia me dizer onde está o erro nesse codigo?

 

<?php if (function_exists('get_header')) {get_header(); }?>
<img src="<?php bloginfo('template_url');?>/images/singleBG.jpg" />
<?php query_posts('showposts=1'); ?>
<?php if(have_posts()) : while(have_posts()) : (the_post()); ?>
<div id="single">
<?php post_class(); ?>
<h4><?php the_title(); ?> </h4>
<?php the_post_thumbnail(); ?>
<div class="single-texto"><p><?php the_content(); ?> </p></div>
<small><?php if (function_exists('the_tags'))the_tags(); ?></small>
<ul class='post-meta'>
<li><span class='post-meta-key'></span> <?php the_meta(); ?></li>
</ul>
<?php endwhile; else: ?>
<?php endif ;?>
</div>
<div id="clearBoth"> </div>
<?php get_footer(); ?>
está emitindo o seguinte erro no navegador
( ! ) Fatal error: Call to undefined function bloginfo() in D:\Program Files\wamp\www\MeuTema2\wp-content\themes\MeuTema2\single-historia.php on line 3 Call Stack #TimeMemoryFunctionLocation 10.0017377224{main}( )..\single-historia.php:0

Compartilhar este post


Link para o post
Compartilhar em outros sites

@omor - No código não consegui identificar nenhum erro analisando "a frio". Você fez alguma mudança antes do erro começar?

 

Tente descrever o máximo possível de alterações que você fez para identificarmos o erro mais facilmente.

 

Abraços.

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.