In an Archive layout, how would I query both Woocommerce products AND a custom post type? If I use a looper provider, my pagination and filters (using facetwp) won’t work. What is the best set up for this outcome?
Hey @bobbyoliveri,
There should be a setting in the plugin that allows you to exclde or include certain types, terms, etc. We recommend that you check out the plugin’s documentation.
- https://facetwp.com/help-center/developers/hooks/indexing-hooks/facetwp_index_row/#exclude-one-or-more-posts-from-a-facet
- https://facetwp.com/how-to-exclude-certain-categories/
Thanks.
I don’t want to exclude post types, i want to INCLUDE both products and another CPT in an archive layout. I did a pre_get_posts snippet that works, but wondering if there is a better way?
Hello @bobbyoliveri,
With or without plugin, if you ask me, the pre_get_posts
is my go to approach to include or exclude a post type in any of my archive pages.
Cheers.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.