4948 posts Community Mod Building awesome stuff for your mobile devices!
  • Trendsetter
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
+17 more
Enabled
Moderator
says

Is there any chance to do this? I tried with Inline Posts, but it is s@#t. Anyone have any ideeas or suggestion on how could I post in pages?

743 posts
  • Elite Author
  • Weekly Top Seller
  • Featured Item
  • Most Wanted Winner
+5 more
Orbital_Themes
says

You mean in Wordpress, right?

263 posts
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
  • Winner
+6 more
der
says

Yeah, I was about to ask the same thing. On the page you want to display your posts, do the following, where 3 is the category ID you want to show posts from, and 4 is the number of posts you want to display (more info here):

global $wp_query;
$wp_query_orig = $wp_query; $wp_query = null; $wp_query = new WP_Query();

$args = Array(
    'category__in' => array(3),
    'showposts' => 4,
    'paged' => $paged );

$wp_query->query($args);

if (have_posts()): while(have_posts()): the_post();

/* blah */

endwhile; endif; 
$wp_query = null; $wp_query = $wp_query_orig;
by
by
by
by
by
by