Nevermind. I forgot to add this in my functions.php
. I will leave the answer here so it may help others.
//Tag pagination pages
function wpd_custom_types_on_tag_archives( $query ){
if( $query->is_tag() && $query->is_main_query() ){
$query->set( 'post_type', array( 'portal' ) );
}
}
add_action( 'pre_get_posts', 'wpd_custom_types_on_tag_archives' );
Related Posts:
- Get Non-Paginated Index of Post in Paginated Query
- why custom post archive gives always no more than 10 posts despite of paging settings?
- Custom post tag images not displaying with ACF
- Custom post type with Filter and Page Nav
- Pagination on custom post types
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- Pagination in custom post type page template
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- How can I include custom post types on a tag page?
- Pagination fault in custom post type archive page [duplicate]
- How to display data with pagaination on backend?
- Pagination custom post types outside loop
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- 404 error Custom search results page for custom post types with friendly URL
- Paginating custom query on category template
- Filter custom post type by tags
- Loop multiple taxonomy in custom post
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom Post Type – Admin Columns
- query and paginate multiple post types
- Custom post type archive pagination with HTML5Blank theme?
- Custom Post Type Pagination Problem in Admin Section
- Generating List of Tags from Custom Post Type
- Taxonomy count per Post type
- Paginate custom taxonomy category with wp_custom_pagination
- Archive.php is not displaying tags
- WordPress Custom Post Type and sort by Tags
- Custom post type navigation on static page
- Pagination in custom loop for custom post type throwing 404 error
- Custom pagination [duplicate]
- previous_posts_link returns null when querying custom post type
- Custom Post Type Pagination for Bones Theme [duplicate]
- Custom post type blog pagination conflict
- Custom post type pagination, single page issue
- Custom Post Type Tags Showing Under Regular Post Tags
- Pagination for a Custom Taxonomy
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Pagination with Custom Post Type
- paging is not working properly on news archives page [duplicate]
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Using pagination with specific custom post type [duplicate]
- Pagination URL order
- Pagination not working with custom loop
- Return all wordpress custom posts in specific multidimensional array
- WordPress Load more posts by ajax not working
- how to limit query_post to first page?
- Paged within a custom content type template [duplicate]
- Pagination for event query
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Archive Page Pagination not working
- Classic Custom Post Types and WP-PageNavi
- List of filtered Events is breaking paging?
- Pagination not working with custom loop
- Pagination not working on homepage
- send user to first page of results when reposting to page?
- How do I paginate a custom post type listing on a custom template page?
- get tags from custom post type
- custom post type tags
- Query Custom Post Type by Tag
- Display by tag from different post types
- Fourth page of custom post type archive page does not exist
- Tags and Taxonomy links not working for Custom Post Types
- Pagination broke after updateto WordPress 3.4 [duplicate]
- Tag-post relationship problem
- Post type cloud like tag cloud?
- Problems with pagination for a custom post type
- WordPress custom post type post and category links 404
- WordPress 3.1 – Tag page not showing posts from custom post type
- WordPress pagination URL
- Pagination not working for archive
- Archive page – problem with pagination
- See the process of creating a taxonomy and tell me where I made a mistake
- WordPress getting problem with pagination [duplicate]
- Attaching multiple custom taxonomies to one CPT?
- Pagination not working in custom post type
- how insert how many post type in this function?
- Pagination not working
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Pagination for custom post type on multisite not working
- Unable to display paging navigation with a custom post type loop
- Pagination on category pages using wp_pagenavi causes 404 errors
- Pagination not working only on Archive-Name.php using new WP_Query
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- CPT Archive Pagination – Page not found
- WPNavi pagination links not working on custom pages
- Pagination not working on custom post type archive
- the_post_navigation in single page with multiple taxonomies
- Archive pagination – second page shows exactly the same posts
- Two pagination in one page without AJAX
- Custom post type pagination conflict result in 404
- Custom post type pagination not working in index.php file
- Custom post type category pages pagination returns 404
- Query Multiple Post Types and Paginate Newly Created List
- “Page not found” while on page 2 from pagination menu
- Issues with Ajax Pagination and Filtering
- ACF – Tags not showing up in Custom Post Types
- Custom post type pagination not working in index.php file
- Tag template for Custom Post Types