• Resolved plou

    (@plou)


    Hello @savvas,

    First of all, thank you for developing this plugin with features that were missing from the basic Sportspress plugin.

    A small suggestion, in the list (or block) of events, the “friendly” events are not displayed, only the “officials”. Possible to fix this little problem?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Savvas

    (@savvasha)

    Hi there @plou ,

    Thank you for your kind words! Really appreciate it!

    To include friendly games also, try something like the following at your functions.php file:

    function custom_modify_officials_event_formats( $formats ) {
    return $formats( 'league', 'friendly' );
    }
    add_filter( 'sportspress_competitive_event_formats', 'custom_modify_officials_event_formats' );

    Thanks,
    Savvas

    Thread Starter plou

    (@plou)

    Hello @savvasha,

    Thanks for the help and the quick response. The code you gave me was returning a wordpress error, so I modified it a little, it works perfectly, thank you! Here is my code:

    function custom_modify_officials_event_formats( $formats ) {
    $formats[] = 'league';
    $formats[] = 'friendly';
    return $formats;
    }
    add_filter( 'sportspress_competitive_event_formats', 'custom_modify_officials_event_formats' );

    Regards,

    • This reply was modified 1 month, 3 weeks ago by plou.
    Plugin Author Savvas

    (@savvasha)

    I am glad you sorted it out ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.