• Resolved lukargo

    (@lukargo)


    Is there a way to filter the results of EM_Events::get based off of a custom attribute? I was hoping that since the key of one of my custom attributes was ‘Featured Events’ that I could do something like

    EM_Events::get( array('Featured Event' => 'Yes') );

    but that is not working as expected. Is there a way I can do this?

    I can get them with WP_query using

    $arguments = array('post_type' => 'event', 'meta_query' => array( array( 'key' => 'Featured Event', 'value' => 'Yes', 'compare' => 'IN')));
    	 				$query = new WP_Query($arguments);

    but I was hoping to use the EM_Events::get method so I could use the event objects.

    https://www.ads-software.com/plugins/events-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Filter EM_Events::get with a custom attribute’ is closed to new replies.