Replies: 0
I have two tabs in my author template. One tab is for first CPT and another is for second CPT.
I used wp_query for both and result was exactly as I need but pagination did not work. It redirects to 404 page not found.
The solution I found was to use pre_get_posts and modify the main query.
How can I use two main query for both CPT separately?
Thanks in advance,