Filter content in shortcode
The year attribute you added to shortcode [speaker_overview_2017 year=2017] will be available through $atts in this way $atts[‘year’]. I assume, you want to do a meta query and the key is speakers_jaar and the value will be $atts[‘year’]. Please check the following code. When a year is set in shortcode, query will be limited to … Read more