heinz23

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Troubles with [list_venues] and [list_organizers] #1392321
    heinz23
    Participant

    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).

    in reply to: Troubles with [list_venues] and [list_organizers] #1389761
    heinz23
    Participant

    This reply is private.

Viewing 2 posts - 1 through 2 (of 2 total)