7th Jul 2021
Hàm lấy được Post Type trong khi query get_post_type()
Set up a variable that contains an array of parameters you’ll pass to the WP_Query class. You’ll want to set the ‘post_type’ parameter to the slug of the custom post type we’d like to query.