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:
- List all the tags from a custom post type
- tag.php doesn’t work with tags on a custom post type post?
- Pagination throws 404 error on custom taxonomy archive pages
- Load custom posts with same tag as page
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Archive page…limiting posts per page
- Get posts with tag all post types
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- Adding An Author Tag To Posts Automatically
- Custom Post Type, Two categories, Two columns with Pagination
- Pagination gives 404 error
- Creating a simple pagination for custom post type templates
- Pagination not working
- Pagination Custom post type
- associate custom post type with tags with specific pages
- Custom Post Type Pagination & duplicate posts
- How to make a custom taxonomy selectable in post publish area?
- Add Tags to custom post type
- Unable to get paginate_links working with a custom query [duplicate]
- Custom post type, permalinks & pagination, going wrong
- Repeating posts when paginating random posts
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Group posts by custom post type
- Pagination for custom php code
- Pagination for Custom Taxonomy Page [duplicate]
- Pagination on with query_posts in custom post type template
- Custom post type getting wrong categories and tags
- Paging doesn’t work?
- Help with Elementor Pagination CPT archive 404 problem
- Custom taxonomy rewrite give pagination 404
- Next and Previous Posts of Same Parent
- How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?
- How to handle paged param in post and custom-post-type?
- Next Post links not working in custom post type shortcode
- Custom Post Types strange pagination problem
- pagination not working for category.php (custom post types in categories)
- Cant get paginations on single.php to work with my custom post types
- Tag page only display 10 posts
- Creating tags via API
- Display posts with tag for custom post type only
- Can’t use pagination with custom taxonomy
- Trouble with pagination
- portfolio custom type tags support
- previous_post_link in same taxonomy in custom post type
- How to do admin CRUD & Pagination
- Custom ordering of CPT items not matching with the ordering of its pagination
- Is it possible to have “two” sets of tags?
- wp_get_canonical_url showing first url of the post for custom page
- How to list custom post types on a custom post type page?
- Custom Post Type Archive Pagination
- If tag exists, then echo once
- display custom portfolio tags
- Custom Post Type Pagination on Single.php?
- Custom post type pagination error
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- Pagination on custom post type without plugin
- Tags being removed upon updates to related posts: ACF/Genesis/WP5.4.1
- pagination problem listing custom post types of taxonomy in wordpress
- Permalink for custom post type pages not working
- How to display custom post type pagination buttons when processing AJAX request
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Pagination for custom query returns 404
- Custom Post Type Pagination – not displaying posts
- Pagination with a custom post type
- Pagination URL in Custom Content Type
- Add tags to a “pending” post before publishing
- Pagination functions won’t work
- pagination for a custom query
- yet another: custom post type with pagination not working in WordPress
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- Pagination fault in custom post type archive page [duplicate]
- Loop multiple taxonomy in custom post
- Taxonomy count per Post type
- Pagination in custom loop for custom post type throwing 404 error
- 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
- WordPress Load more posts by ajax not working
- Pagination not working with custom loop
- get tags from custom post type
- Query Custom Post Type by Tag
- Display by tag from different post types
- WordPress custom post type post and category links 404
- WordPress 3.1 – Tag page not showing posts from custom post type
- Pagination not working for archive
- WordPress getting problem with pagination [duplicate]
- Attaching multiple custom taxonomies to one CPT?
- Pagination not working
- Pagination not working only on Archive-Name.php using new WP_Query
- CPT Archive Pagination – Page not found
- 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
- 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