Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Difference between query_posts and get_posts
(1 viewing) (1) Guest
All your queries regarding
Wordpress Blog,
Installation of Wordpress Blog,
Configuration of Wordpress ,
Using Wordpress as a CMS,
Wordpress Plugins and tonnes more... will be solved in this forum...
  • Page:
  • 1
TOPIC:

Difference between query_posts and get_posts

Difference between query_posts and get_posts 10 months, 1 week ago #698

  • dhuruv
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Karma: 0
Hi,

I am creating a WordPress theme.
I want to know the difference between query_posts and get_posts for WordPress Theme??

Thanks in advance.

Re: Difference between query_posts and get_posts 10 months, 1 week ago #701

  • andrew
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 0
query_posts() - used to display different posts than those that would normally show up at a specific URL.
codex.wordpress.org/Function_Reference/query_posts

get_posts() - retrieves a list of latest posts or posts matching criteria.
codex.wordpress.org/Function_Reference/get_posts
  • Page:
  • 1
Time to create page: 1.21 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download