How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]

For anyone who needs help with this, here’s my solution. With the Gravity Forms hooks gform_pre_render, gform_pre_validation, gform_pre_submission_filter and gform_admin_pre_render I was able to populate the dropdown fields with dynamic data. Despite this is not too user friendly, we can define specific CSS classes to have this done and avoid populate fields that we don’t … Read more

Limit Display Number Of Taxonomy Term

Instead using get_the_term_list() function, you should use get_the_terms() which will give you directly an array of terms (as get_the_term_list() is using get_the_terms() herself if you look to the source code of the function). Then that you can build a custom function to get what you want (I will not use implode() function or any other … Read more

How to query custom post type by two terms?

figured it out I removed the taxonomy code within my query and added <?php $args = array( ‘showposts’=>25, ‘post_type’=>’liaisons’, ‘speakeryear’ =>$options[year] ); $query = new WP_Query($args); while ( $query->have_posts() ) : $query->the_post(); if( has_term( ‘test1’, ‘placementcategory’ ) ) { ?> <article class=”card-half”>Test</article> <?php } endwhile; ?>