You don’t need to return $query it is passed by reference.Have a look at the codex
The return statement might be shortcircuiting the page load. Try removing it.
Related Posts:
- Custom Post Type Archives by Date and Taxonomy
- How do I display two separate taxonomy archives for two post types that share a single taxonomy?
- get_categories for custom post type and filter by custom taxonomy (brand) and list child categories of a defined category
- Category page only displaying the posts from a custom type
- How to list custom post types?
- Hierarchical Custom Post Types – Show only parent on tax archive?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Use the custom post type archive for taxonomies?
- How to constrain the results to a specific post_type on tag archive page?
- Archive for custom taxonomy
- One of my headings is mysteriously coming up as a link in my CPT Archive
- How can I set up the URL for a category archive for a custom post type?
- Show custom category archive as front page and remove taxonomy slug from urls
- Taxonomy term archive claims there are no posts, but there are. How to resolve?
- Custom Taxonomy archive with url parameters
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- Setting up custom post type archives in WP3.1? Any luck?
- How to show more posts on an archive page?
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Create an archive page for custom taxonomies
- Display all custom post types in archives.php
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Removing CPT slug from URL results in 404 error for archive page
- Internationalize / translate custom post types & taxonomies
- Multiple post types in archives (filter?)
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Custom post type archive sorted and grouped by date in post meta field
- Associate Taxonomies Across Post Types
- Custom-post-type-archive: posts sorted/filtered by year?
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Have a Custom Post Type index page display taxonomy items instead of posts
- How to get the post type from a category id?
- Custom Post type is being ignored in query
- Hide specific parent categories from post edit
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Custom post types archive redirect
- just can’t get date-based archives per post-type to work
- Using default WP menu functionality to link to custom post-type listing?
- How to display custom taxonomies with links in filter menu?
- How to Filter custom post type by taxonomy?
- How to get post type and month/year before while loop for date.php file
- Show child custom post types list inside single parent custom post type
- Several post types on WP Query by tag and taxonomy
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Custom archive page for CPT UI
- How to display custom post in archive section of the wordpress page?
- Filter get_cat_id for Custom Post Type
- Custom Post type & Taxonomy 404
- Custom taxonomy (categories) on custom post type return no results
- Add tags to custom post type without menu link
- My custom taxonomy is only displaying 1 of 3 terms
- Archive Page for Multiple Custom Post Types
- Sort results without WP_QUERY?
- Categories won’t appear on custom post type
- Archive page for custom post type and custom taxonomy
- Custom Post Type Taxonomy Term Order by Title
- Using page title as a link to term archive
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Create a Custom Path to Archive
- Advanced archive url structure (category, tag and date)
- Displaying taxonomies as category links within sidebar and creating pages for these
- Get List of Terms based on a given term (different taxonomy)
- Question about link two types of data in wordpress
- Add Tags to a Custom Post Type from a FrontEnd Form
- Get the taxonomy value in the post loop inside the archive page
- Custom post type archive URLs with a single taxonomy
- How to show related posts of category on post within custom posttype
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How to show custom post count in archive page
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Adding Custom Post Types to category/tag/author archives breaks header content
- Filtering custom post using Ajax and taxonomies, keep getting 0
- Changing an item in drop down after 5 latest posts per taxonomy
- Query for a custom post taxonomy
- Want to display my custom date archive to date.php but dont know how
- Update Cateogory Taxonomy Count for Attachment Post Type
- Related posts by taxonomy [duplicate]
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Sort by Custom Post Type (Multiple Loop)
- How to display elements of different post types?
- ‘Blog Archive’ suddenly appeared on custom post type; how to remove
- How to display only taxonomies of custom post type in a page?
- Stop header code from showing in category page?
- Custom Post Type order Title ASC
- get_the_term_list() wanting to loop through the returned values
- Displaying child taxonomies
- Echo post count of CPT with current taxonomy
- How can I rename custom taxonomy if multiple custom post type have the same taxonomy name?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?
- Add taxonomy or category slug to custom post types URL