Lubinik Learning

Training mode

WP_Query & Content Retrieval

Time remaining:

0 / 20 answered

  1. 1. What is WP_Query used for?

    What is WP_Query used for?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  2. 2. What is a secondary query?

    What is a secondary query?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  3. 3. How is a custom WP_Query commonly created?

    How is a custom WP_Query commonly created?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  4. 4. Which argument selects one or more post types?

    Which argument selects one or more post types?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  5. 5. Which argument filters by publication status?

    Which argument filters by publication status?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  6. 6. What does posts_per_page control?

    What does posts_per_page control?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  7. 7. What does orderby control?

    What does orderby control?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  8. 8. What does order normally specify?

    What does order normally specify?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  9. 9. Which argument is commonly used for numbered pagination?

    Which argument is commonly used for numbered pagination?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  10. 10. Why can offset complicate ordinary pagination?

    Why can offset complicate ordinary pagination?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  11. 11. What does tax_query filter by?

    What does tax_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  12. 12. What does meta_query filter by?

    What does meta_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  13. 13. What does date_query filter by?

    What does date_query filter by?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  14. 14. Which argument performs the ordinary WordPress text search?

    Which argument performs the ordinary WordPress text search?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  15. 15. What should fields be set to when only post IDs are needed?

    What should fields be set to when only post IDs are needed?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  16. 16. Which methods drive a Loop on a WP_Query object?

    Which methods drive a Loop on a WP_Query object?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  17. 17. What should follow a secondary WP_Query loop that called the_post()?

    What should follow a secondary WP_Query loop that called the_post()?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  18. 18. What does get_posts() provide?

    What does get_posts() provide?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  19. 19. When is pre_get_posts useful?

    When is pre_get_posts useful?
    Hint

    Identify the WordPress API responsibility before considering implementation details.

  20. 20. Why check $query->is_main_query() inside pre_get_posts?

    Why check $query->is_main_query() inside pre_get_posts?
    Hint

    Identify the WordPress API responsibility before considering implementation details.