WP_Query is the WordPress query class that is used to fetch posts from the database. How would you create a new instance of this class?

  • $query = new query_posts();
  • $query = new WP_Query();
  • $query = query_posts();
  • $query = get_posts();
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Share via
G Certification Course We would like to show you notifications for the latest news and updates.
Dismiss
Allow Notifications
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend