Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $myposts = get_posts("numberposts=2&category=3");
- foreach($myposts as $post) : the_content(); endforeach;
- query_posts("numberposts=2&category=3");
- while ( have_posts() ): the_post();
- the_content();
- endwhile;
- the_post();
- the_content();
- <ul>
- <?php
- global $post;
- $myposts = get_posts('numberposts=5&offset=1&category=1');
- foreach($myposts as $post) :
- setup_postdata($post);
- ?>
- <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
- <?php the_content() ?>
- <?php endforeach; ?>
- </ul>
Add Comment
Please, Sign In to add comment