Support » Plugin: Events Manager » How to query (filter) by ACF field

  • Hi,

    i have created one ACF field and I want to filter events by my_acf_field (Radio-Button) and value! Here my PHP code:

    $events = EM_Events::get(array(‘recurring’=>’1’, ‘limit’=>4, ‘meta_key’=>’my_acf_field’, ‘meta_value’=>’yes’));
    foreach( $events as $EM_Event ){

    <div><?php echo $EM_Event->output(“#_EVENTNAME”); ?></div>

    <?php } ?>

    Can anyone help me?

    • This topic was modified 1 month, 2 weeks ago by aufwindkg.
Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl



    Sorry, at the moment we don’t have a similar snippet with regards to ACF custom filter or search attribute.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.