4597 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 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?

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

You mean in Wordpress, right?

262 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a competition
  • Has been part of the Envato Community for over 5 years
+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;

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by