Ever since WordPress implemented custom post types a whiles back, the use of WP_Query
to retrieve posts based on custom criteria has become standard practice. Listing comments has not become so widespread for some reason, despite the availability of the WP_Comment_Query
class.
WP_Comment_Query
allows theme and plugin authors to retireve post comments using a standardized interface. The days of ugly direct database queries are gone. We can now use modular and readable arguments to do our bidding.
GIPHY App Key not set. Please check settings