Home > Wordpress > WordPress function to fetch posts from category id

WordPress function to fetch posts from category id

<?php
 $posts = get_posts(array('category' => 5)); // Here 5 is category id
?>
EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: Wordpress Tags: ,
  1. August 6th, 2011 at 17:56 | #1

    I agree with your PHP Code » WordPress function to fetch posts from category id | Free php code | Free php script | Magento | Joomla | WordPress, good post.

  2. August 9th, 2011 at 13:39 | #2

    I agree with your PHP Code » WordPress function to fetch posts from category id | Free PHP code | Free PHP script | Magento | Joomla | WordPress, fantastic post.

  3. August 10th, 2011 at 20:37 | #4

    Thanks i love your article about PHP Code » WordPress function to fetch posts from category id | Free PHP code | Free PHP script | Magento | Joomla | WordPress

  4. August 17th, 2011 at 02:02 | #6

    Thank you, this was worth the amount of work it took me to actually see it. Completely moronic how many proxies I had to go through to view this post. Don’t ever move to Turkmenistan, completely random webpages have been censored by our isp’s for absolutely no reason. Cheers – Juanita Inscoe

  5. August 28th, 2011 at 16:26 | #8

    Bless you! Our organization are longing for impending essayissts, will you be curious? This usually cannot cause you wealthy on the other hand there is an elegant payment and if you definitely appreciate writing then doing this gig is for you.

  6. September 8th, 2011 at 05:56 | #9

    Hot damn, looking pretty usuefl buddy.

  1. No trackbacks yet.
You must be logged in to post a comment.

Switch to our mobile site