Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Author template query

$
0
0

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,


Viewing all articles
Browse latest Browse all 59525

Trending Articles