Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter stayzuplate

    (@stayzuplate)

    Mikko, thanks for the prompt response. You are right that I should have been trying to set up a tax_query for the ACF taxonomy field. I tried changing my query to the following, but am still not having any success.

    $tax_query[] = array('taxonomy' 	=> 'ACF_field_name',
    		      'field'		=> 'slug',
    		      'terms'	 	=> $query->query_vars['var_name'],
    		     );

    If anybody out there has had success updating the WPQuery to find matches on ACF taxonomy fields, please chime in and let me know how you accomplished this.

    Instead of spinning my wheels on this any further, I will move on to using the relevannsi_hits_filter to weed out unwanted results as you’ve suggested.

    BTW, the relvannsi plugin is very powerful and I want to thank you for sharing it with the WordPress community!

    • This reply was modified 9 years, 1 month ago by stayzuplate.
    Thread Starter stayzuplate

    (@stayzuplate)

    Clarification: I meant to say that I’m trying to set up a meta_query entry to find matches with an ACF variable that is set to use a taxonomy of ‘post_tag’, not ‘post_type’.

Viewing 2 replies - 1 through 2 (of 2 total)