Displaying posts by custom taxonomy terms not working as expected

[ad_1]

I have a custom taxonomy “artists” that has artist names (e.g., Black Hibiscus) as terms (created with CPT UI). I wanted to customize the archive for the artists in that it will display posts categorized/tagged as Album Reviews and Track Reviews that pertain to them, if any.

To achieve this, I use the following code:

Album reviews[display-posts taxonomy="artists" tax_term="black-hibiscus" category="album-reviews" tag="album-reviews" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]

Track reviews

[display-posts taxonomy="artists" tax_term="black-hibiscus" category="track-reviews" tag="track-reviews" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]

However, this results in all posts categorized/tagged as “album reviews” and “track-reviews” being shown respectively, seemingly disregarding the specified custom taxonomy and term.

I have tried removing category="album-reviews" tag="album-reviews" and category="track-reviews" tag="track-reviews" and ended up with all posts being displayed, still disregarding the taxonomy="artists" tax_term="black-hibiscus" rule.

I have also tried writing the code this way:

Album reviews[display-posts taxonomy="category" tax_term="album-reviews" taxonomy_2="post_tag" tax_2_term="album-reviews" taxonomy_3="artists" tax_3_term="black-hibiscus"  tax_relation="AND" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]

Track reviews

[display-posts taxonomy="category" tax_term="track-reviews" taxonomy_2="post_tag" tax_2_term="track-reviews" taxonomy_3="artists" tax_3_term="black-hibiscus" tax_relation="AND" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]

This does not work either.

Any advice is appreciated.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer