' publish',
This is your problem, an extra space character.
Note that in future you can catch this by using Query Monitor and by checking if posts were found. Because the post loop is missing an if ( $query->have_posts() ) { ... } else { echo "none found"; } type check, you had no way of knowing where to look for the problem.
Also, you’re listing terms in the filed-under taxonomy:
'taxonomy' => 'filed-under',
But then you’re passing those terms to the category_name parameter, which is unrelated. So now the terms are being used as if they are terms in the category taxonomy, but they are not.
Related Posts:
- Multiple Loops In Tabs Only Displaying First Loop
- Custom post type conditional in loop
- Listing all term items alphabetically / sorting loop
- Display related custom taxonomy posts in sidebar
- pagination not working for category.php (custom post types in categories)
- Only show posts with date of today or in the future (i.e don’t show past posts)?
- How do I control the output of a custom post type in the loop?
- Display custom post type posts first, then default posts
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Three Most Recent Posts, One Per Term
- Targeting custom post type
- Does WP have a global of $id?
- WordPress Loop if/else
- get_the_title() is returning results from previous loop
- Custom Post Loop pulling all custom posts, not just one
- Conditional for a Single Post That Belongs to a Category?
- Wrapping x posts in html without leaving empty html
- WP Query post__in not returning correct results
- Custom Post Type single.php template only shows the latest post
- Sort posts in loop by the WooCommerce Membership of the author
- Including all post id’s of a custom post type into an array
- How to include custom post type posts on a page?
- 4 column-loop ordered alphabetically with entries grouped (and labeled) by their first letter
- Tag page only display 10 posts
- How can I group posts by months and years?
- Pagination Error : Duplicate argument being outputted
- get_post_type is always post
- Multiple Custom Post Type queries, how to DRY it up
- Custon Content within WordPress Loop
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Bootstrap accordion looping through posts incorrectly
- Main query not querying any posts in custom taxonomy template
- Loop increase number
- Custom post type showing same Post on all Pages
- get_post_meta is not working inside shortcode
- Using wp_query to modify the loop in index.php for a CPT
- the_post() is printing titles in page footer
- Custom WP_Query doesn’t display all posts
- Dynamic bootstrap tabs with post_title doesn’t display the_content
- Query & the_content() is showing in the header
- Create Array from custom post type to display a slider
- Move Genesis Single Page/Single Post Title
- get parent content inside child posts
- 3 random images from custom post type, each in a div with a diffrent class
- Two column layout with alphabetical ordering
- Post loop count is not in order
- Control content before and after custom post type loop
- Listing custom post types on archive page with array
- get_pagination not working on a custom post type query (using WP_Query)
- How to Make infinite loop of post
- WP_Query with custom post type ID
- Displaying multiple post types on home page
- looping though custom post types and only return results in a given taxonomy
- Shortcode leaves no space for other elements?
- How to conditionally add Custom Post Type to Front Page
- Dynamically insert code to custom post type loop
- hide specific div on single.php [closed]
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Search Filter CPT, Custom Loop
- How do you output an unknown number of images in a custom post type with desired markup?
- Get data from PHP to JavaScript to set position of each post on front page
- Pull in taxonomy field of custom post type in new query
- How to add a lightbox to class mix?
- display posts of custom post type with custom taxonomy
- Query to get child pages of current page and display it in action hook
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- Add more than one custom post type to wordpress home page post loop
- get custom post type value in header.php [closed]
- assign different templates to custom post type with homepage loop
- Get post content from another section in custom single page
- Get post format
- Custom wordpress loop
- Assign a template to a custom post type when displayed by the main loop on the home page
- Custom Post type content within a slider
- Trying to add a class to post links
- posts within custom post type all share the same content in the front-end
- Custom Post Type and Taxonomy Loop Output Is Wrong
- displaying content of custom post type
- postsperpage value not being applied
- Posts are not rendering perfectly [closed]
- Display the current post in browser as the first post in a loop (for a slideshow)
- get_terms() parent, child and grandchild
- Multiple Loops on a Page Without Duplicates
- Display post from custom post type
- Use post in multiple places on a page with multiple posts
- List all Custom Post Type posts excluding certain Taxnomy term
- Query all post types but limit to parents
- WordPress giving a 404 page when passing a year argument different than the current year
- foreach loop inside the loop creating duplicates in output
- Add Class according to the order of appearance
- Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis
- Loop Post Types with Name and Links
- Display all images from specific CPT
- The loop does not show users
- Custom loop to query posts with no featured image and/or no post editor content
- Compare Two Custom Post Types Using The Same Custom Taxonomy