Support

Account

Home Forums General Issues Querying taxonomy field inside a repeater? Reply To: Querying taxonomy field inside a repeater?

  • rlocke, were you able to sort this out? I’m having exactly the same issue – I’ve even changed my custom field to be a select instead of the original taxonomy I was using, but still nothing is returned. When I had it set as taxonomy, the ID didn’t return anything either. If I comment out the meta_query array, the query returns posts. I’ve checked that all my names are correct, correct spelling, nothing is doing the trick. ๐Ÿ™ Any ideas?

    
    // i've got the function code here as in example, only using 'projects_%_type'
    
    $args = array(
    	'numberposts' => -1,
    	'post_type' => 'artist',
    	'meta_query' => array(
    		array(
    			'key' => 'projects_%_type',
    			'value' => 'lifestyle'
    			)
    		)
    	);