As per comment I also see some trouble understanding album
and album media
essence. You are also mixing up terminology a bit with terms
and taxonomies
(term
is item in taxonomy
).
So I am going to focus on your summary and leave to you how to put parts together:
-
multiple taxonomy query – taxonomy queries got much improved in WP 3.1 and now you can construct very elaborate things with taxonomy parameters.
-
loop within a loop – easier to say secondary loop, it doesn’t matter where secondary loop is. because it shouldn’t influence surroundings in any case. For secondary loops either
WP_Query
object orget_posts()
function are appropriate. -
custom taxonomies and post types a little to generic point, there are plenty of nifty related functions. I suppose
wp_get_post_terms()
sees a lot of usage, when taxonomies are involved.
Related Posts:
- Query for posts in 2 taxonomies
- ‘category__and’ for custom taxonomy?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Show a Category X’s custom post type on Category X archive page?
- Listing all term items alphabetically / sorting loop
- Control content before and after custom post type loop
- Display all posts in a custom post type, grouped by a custom taxonomy
- Retrieving 3 latest post from each of 5 different custom post types
- how to group custom post type posts by custom taxonomy terms
- Posts per Page on custom Taxonomy Template
- Query posts by custom post type and custom taxonomy
- List all posts in Custom Post Type but group dynamically by Custom Taxonomies
- Randomly placed sticky custom posts complemented by blog posts
- How to display the rest of categories on Portfolio filterable
- pre get posts changing the query
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- List custom post type by custom tax term as page title
- how can i get posts from custom post type particular taxonomy category
- How to insert content from another Custom Post type into Post?
- Filter by custom taxonomy slug on a custom post type
- Normal pages as children of my Custom Post Type
- Only show posts from a certain category?
- Change or update WordPress loop based on dropdown selection
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Query/list all terms and their custom post count
- get_attached_media() on author page not working
- Custom loop with multiple taxonomy queries
- Custom post type multiple loop by taxonomy term
- List custom taxonomy specific to one custom post type
- Return the latest post from a custom Taxonomy and Post Type
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Group CPT posts by custom taxonomy
- What’s the WP way to load remaining custom posts?
- Display Custom Taxonomy Alphabetically
- Full Custom Post Type List Organised by two Taxonomies
- Display related custom taxonomy posts in sidebar
- pagination not working for category.php (custom post types in categories)
- How to display Related Posts based on number of taxonomy terms matched
- get_the_title() is returning results from previous loop
- Main query not querying any posts in custom taxonomy template
- Custom query – get_the_terms not work
- 3 random images from custom post type, each in a div with a diffrent class
- Display custom posts randomly in custom taxonomy archive
- Not able to export large no. of posts in csv
- attach CPT data to a taxonomy
- looping though custom post types and only return results in a given taxonomy
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Targeting custom post type via functions.php doesn’t work
- Pull in taxonomy field of custom post type in new query
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- get_terms() parent, child and grandchild
- List all Custom Post Type posts excluding certain Taxnomy term
- List all posts in taxonomy term
- Query all post types but limit to parents
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Create a custom taxonomy template that loops through child categories in term order?
- Custom Post type showing up in loop, regular posts are not showing up
- Loop and add Specific Categories and Products Images
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Sorting the Loop by Taxonomy Value
- How can I loop at a Specific Taxonomy from a custom post type?
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom archive page for custom taxonomy and pagination issue
- Custom post type paging return home page
- custom post type and a “sticky” position taxonomy
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Some posts not displaying by taxonomy term
- Combine multiple separate lists into one
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- Adding a Section for Visitors
- Why is my loop not populating the page with my custom taxonomy terms from my custom post type?
- Show parent category and subcategory once in while loop
- List all posts associated under custom taxonomy
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Loop to display parent categories in custom taxonomy
- Custom taxonomy template for custom fields loop [closed]
- How to show terms used only for particular custom post type. Filter creation perpose
- Show posts for current taxonomy
- Custom post types not displaying per category
- Custom post type with custom taxonomy permalinks
- Custom taxonomy page template
- Loop with Custom Post Type and Taxonomies
- display news with pictures 3 small and one large (loop)
- Loop multiple taxonomy in custom post
- Post data in separate divs with incrementing class using WP_Query
- WordPress Custom Post Type and sort by Tags
- Display posts from category in page
- Sorting custom post types by taxonomy (So close)
- Looping taxonomy in taxonomy?
- Inserting two categories
- How do I correctly query posts from a post ID?
- display custom post type from register taxonomy
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Create a WordPress loop that shows posts from a custom post type + filters the posts by taxonomies while hiding empty taxonomies
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template