/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $my_query = new WP_Query('category_name=fotografia&showposts=3'); ?> <?php if (have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php endwhile; endif; ?>