Select event where start date is smaller than current date and end date is greater than current date

You can try to replace this kind of comparison: AND m1.meta_value >= ‘$start_date’ with: AND CAST(m1.meta_value AS DATE) >= ‘” . date( “Y-m-d H:i:s”, $start_date ) . “‘ or if you would use Unix timestamp for the meta values then you could try: AND m1.meta_value+0 >= “. strtotime( $start_date ) .” Update: Here is a … Read more

Redux callback action

This is an old question but if you are still looking, what you want is the dependency option. You can use it like this : Redux::setSection( $opt_name, array( ‘title’ => __( ‘Test’, ‘redux-test’ ), ‘id’ => ‘switch_buttonset’, ‘desc’ => __( ”, ‘redux-test’ ), ‘icon’ => ‘el el-cog’, ‘fields’ => array( array( ‘id’ => ‘switch-on’, ‘type’ … Read more