WPIntell

Source evidence

How to loop for posts only with certain taxonomy?

Categories Images · support · 2021-08-04T21:28:00+00:00

complaintsentiment
mediumseverity
0.69relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

8 / 21 rows with source links

38.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

13 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
benjaminblue unresolved
I have a CPT “classes” with a taxonomy “series”. I am trying to use your plugin (thanks for it!) to only show classes with a series of “My New Series”. I have tried you examples and can’t seem to properly code the certain taxonomy. This, displays nothing: <ul> <?php foreach (get_the_terms(('series'), 'My New Series') as $cat) : ?> <li> <img class="img-responsive" src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> <a class="fusion-no-lightbox" href="<?php echo get_term_link($cat->slug, 'series'); ?>"><?php echo $cat->name; ?></a> </li> <?php endforeach; ?> </ul> This, displays all classes (posts) with any series (tax): <ul> <?php foreach (get_the_terms('series') as $cat) : ?> <li> <img class="img-responsive" src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" /> <a class="fusion-no-lightbox" href="<?php echo get_term_link($cat->slug, 'series'); ?>"><?php echo $cat->name; ?></a> </li> <?php endforeach; ?> </ul> How do i loop through posts only that have taxonomy “My New Series”? Thanks, Ben

Comments

0 shown

No comments were stored for this source.