Lida 7034 vezes
<?php query_posts('category_name=SLUG DA CATEGORIA&showposts=15'); ?><?php while (have_posts()) : the_post(); ?><ul> <li><a href="<?php the_permalink() ?>"><?php the_title() ?></a></li></ul> <?php endwhile; ?>
Queres é colocar os últimos posts de uma categoria na sidebar ou assim?Código: [Seleccione]<?php query_posts('category_name=SLUG DA CATEGORIA&showposts=15'); ?><?php while (have_posts()) : the_post(); ?><ul> <li><a href="<?php the_permalink() ?>"><?php the_title() ?></a></li></ul> <?php endwhile; ?>
Sim é isso mesmo bfms.É so colocar o codigo na sitebar ??? abraço
Nem era preciso usares aquele código, bastava arrastares para a Sidebar um widget RSS e colocar a feed de um categoria, do tipo:http://TEU-DOMINIO.com/categoria/NOME-DA-CATEGORIA/feedOnde está categoria pode estar category, ou assim... É o mais habitual de se ver...
Conversa Geral
WordPress
Negócios Online