menu

arrow_back How to output the right TYPE of record with the standard WP loop?

by
1 vote
Hello. There is such a task: on the page of the product catalog to display records (standard single). There is a standard loop, then the products get into it. Is it possible to specify the type of records in this loop as an argument. Or is there some other way to display the records

1 Answer

by
0 votes
WP_Query
the 'post_type' parameter
https://developer.wordpress.org/reference/classes/...