Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter fanto78

    (@fanto78)

    thank you for your answer…

    custom code into class-wpcm-shortcode-player-gallery.php?

            if ( $players ) {
    
                $player_details = array();
    
                foreach ( $players as $player ) {
    
                    $player_details[ $player->ID ] = array();
    
                    $player_details[ $player->ID ]['id'] = $player->ID;
    
                    $player_stats = get_wpcm_player_stats( $player->ID );
    
                    $thumb        = wpcm_get_player_thumbnail( $player->ID, 'player_full' );
                    $url          = get_permalink( $player->ID );
                    $player_title = get_player_title( $player->ID, $name_format );
    
                    $player_details[ $player->ID ]['image'] = apply_filters( 'wpclubmanager_player_gallery_image', '<a href="' . esc_url( $url ) . '">' . $thumb . '</a>', $url, $thumb );
    
                    $player_details[ $player->ID ]['title'] = apply_filters( 'wpclubmanager_player_gallery_title', '<a href="' . esc_url( $url ) . '">' . wp_kses_post( $player_title ) . '</a>', $url, $player_title );

    removing those <a href …> </a> statement don’t change the result …..
    or shortcode need to be regenerated?

    • This reply was modified 2 months, 2 weeks ago by fanto78.
Viewing 1 replies (of 1 total)