Support

Account

Home Forums Front-end Issues query based on current page Reply To: query based on current page

  • Had to tweak it some, something about the compare “like” wasn’t working. This seems to work…

    
    $args = array(
    	    'post_type'  => 'event',
    	    'meta_query' => array(
    	        array(
    	            'key' => 'business_name',
    	            'value' => get_the_ID()   
    	        )		
    	    )
    	    );
    

    Thanks!

    Matt