Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('/var/www/vhosts/cucirca.eu/html/wp-load.php');
- $args = array('cat' =>'$category_id' , 'post_status' => 'publish' , 'posts_per_page' => 10);
- $posts = new WP_Query($args);
- while ($posts->have_posts())
- {
- $posts->the_post();
- $id = get_the_ID();
- echo get_the_title().'<br/>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement