Use a new query outside the loop like this one
$query = new WP_Query( 'category_name=ben affleck;post_type=post' );
if ( $query->have_posts() ) : while $query->have_posts() : $query->the_post();
// Loop output goes here
endwhile; endif;
Related Posts:
- Create template for taxonomy results limited by Custom Post Type
- How can I get this request to use the Custom Post Type page template instead?
- Archive for a Taxonomy of a Custom Post type
- Custom Post Type tag taxonomy “Page Not Found”
- how to pass args for archive.php query?
- Filtering a custom post type by custom taxonomy in archive template
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Taxonomy, Terms, and Template Files
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Pagination throws 404 error on custom taxonomy archive pages
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- Loading custom page template via plugin
- Templates for Custom Post Types and Custom Taxonomies
- Get page by template?
- Create permalink structure for one taxonomy archive per custom post type
- Page is defaulting to archive page and not designated template
- Custom Post Type Archive URL takes over page URL
- Custom Post Type with Nested Taxonomy and Template Files
- Custom Post Type Archive Template
- Pages, Custom Posts & Custom Taxonomy defining slug structure
- How to show a tag archive of one post type only
- Custom taxonomy archive page not working
- where can I see my custom post type archive template?
- How to show multiple post types on taxonomy archive?
- Disable single pages and archives and keep preview
- Include different loop templates in search query
- Create separate template for shared custom taxonomy with shared terms
- Trying to manage templates on a blog with lots of custom taxonomies
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Get post type from taxonomy or category page
- Custom post type and taxonomy permalinks – Structure
- custom taxonomy archive by year
- Display custom post type taxonomies as an archive page
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to show the archive / post type description on Single templates
- How To Create A Custom Taxonomy 404 Page
- Archive page for taxonomy terms
- Custom template page with custom archives listing by user
- Root slug of taxonomy returning 404
- Query with no terms uses index.php template instead of archive.php
- Template for custom post with custom taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- Why is my site using index.php instead of archive?
- Custom post type archive page blank
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- WordPress Doesn’t Generate Taxonomy Archive
- Custom taxonomy returns 404
- Template for all categories of a custom post type?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- WordPress custom taxonomy template not working
- Custom Post Archive is not working
- Template files for Custom Post Type and Taxonomy
- how to remove pages loading with the archive templates
- Custom Post type & Taxonomy 404
- Main query not querying any posts in custom taxonomy template
- Which Template Page Should I Use?
- Loop through custom posts by taxonomy and display the titles in a list, it is repeating 8 times
- Dynamically insert an article at the top of a taxonomy archive – or?
- Which file/template is in charge of taxonomies for custom post types?
- How to get_term_meta on single custom post?
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Get template part with CPT and Custom Taxonomy conditionals
- How to create a template to show child terms of a MAIN taxonomy
- How to change single custom post template by custom taxonomy?
- Archive page for custom post type and custom taxonomy
- Archive Template being used instead of Category Template for Custom Post Type
- Advanced archive url structure (category, tag and date)
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Is possible register two archive pages for single custom post type?
- Archive page of CPT’s custom Taxonomy
- Custom Post Type Archive Page showing as 404
- Set up Custom Taxonomy Archive Template File To Cover 3 Categories
- Custom Post Taxonomy Template Not Loading Properly
- How to show custom post count in archive page
- Turning archive templates to a page template maintaining the slug
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- Custom category taxonomy – archive page not showing up
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- Custom taxonomy template for custom fields loop [closed]
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Templates for CPT not working
- Custom taxonomy archive slug overwrites static page
- I want to create an archive and single page for a custom taxonomy for a custom post type
- Custom post type archive page not showing on archive-posttype.php
- Multiple archives for cpt, taxonomies, terms
- WordPress Custom taxonomy template
- How to assign custom post template to its custom taxonomy terms
- archive-{custom_post_type}.php not getting recognized wordpress
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Archive templates based on taxonomies
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- Only One Post of Custom Post Type Appearing on Template Page
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query