Criador do tópico
Michael
(@bazzarello)
Bom dia Rafael,
Não tenho conhecimento em programação, por isso, não tenho muito noção destas informações, e também sou iniciante com WordPress.
Com seu tutorial conseguí fazer o que procurava, ficou perfeito! Porém ainda preciso incluir a “paginação” para que o visitante possa ver posts mais antigos.
No atual tema utilizo o seguinte código:
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?><div class=”clear”></div>
Tentei encaixar em todas as partes desta página “blog” que criei mas não funcionou.
Pode me ajudar?
Link do Blog: http://autocustom.tempsite.ws/?page_id=1429
Obrigado e abraços,
Michael Bazzarello.
Criador do tópico
Michael
(@bazzarello)
Então, ele já tá ativo e funcionando, mas não funciona na página “blog.php” que criei. Sabe o que pode ser? Ou em que lugar do código posso encaixar?
Funcionando em categorias:
http://autocustom.tempsite.ws/?cat=3
Não funcionando na página blog:
http://autocustom.tempsite.ws/?page_id=1429
Criador do tópico
Michael
(@bazzarello)
JÁ TENTEI ENCAIXAR AQUI
<?php if (have_posts()) : ?>
JÁ TENTEI ENCAIXAR AQUI
<?php the_post(); ?>
JÁ TENTEI ENCAIXAR AQUI
<?php the_content(__(‘(more…)’)); ?>
JÁ TENTEI ENCAIXAR AQUI
<?php $my_query = new WP_Query(‘posts_per_page=3’); ?>
JÁ TENTEI ENCAIXAR AQUI
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
JÁ TENTEI ENCAIXAR AQUI
<!– post –>
<div id=”post-<?php the_ID(); ?>” class=”post”>
” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(‘<h1>’,'</h1>’); ?>
<div class=”entry”>
<?php the_content(); ?>
</div>
<div class=”clear”></div>
<ul class=”postinfo”>
<?php if(function_exists(‘the_views’)) { print ‘<li class=”nview”>’; the_views(); print ”; } ?>
- <?php if (function_exists(‘sharethis_button’)) { sharethis_button(); } ?>
- Veja mais: <?php the_category(‘, ‘); ?>
- “><?php comments_number(‘Comentar’,’1 comentário’,’% comentários’); ?>
</div>
<!– post –>
<span class=”article_separator”> </span>
<?php endwhile; ?>
</div>
<?php else : ?>
<h2>Nada Encontrado</h2>
<?php endif; ?>
</div>
<!– END content –>