LinkedIn WordPress Skill Quiz Answers

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?

Latest Update on 23rd January, 2022 by Certification Course Answers

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?

  1.  $query = new query_posts();
  2.  $query = new WP_Query();
  3.  $query = query_posts();
  4.  $query = get_posts();

Correct Answer:

  •  $query = new WP_Query();

Latest Updates

No posts found in this category.