Hi,
you are right. In PHP 7.0 “$atts[‘post_type’] = $type;” is no problem.
Seems to be a side effect with the $atts array in 7.1.
I renamed $atts to $atts2 in the shortcode-functions and it runs pretty
well in 7.1 and 7.0.
——————————–
function tec_do_organizer_shortcode( $atts ) {
$type = TEC_VenueOrganizer_List::get_type( ‘ORGANIZER_POST_TYPE’ );
if ( ! $type ) return ”;
$atts2[‘post_type’] = $type;
return new TEC_VenueOrganizer_List( $atts2 );
}
——————————–
If you like to enhance this plugin for venue/organizer selection with
upcoming events I have attached a working draft (supposed with a
category 3).