• Resolved tomtom555

    (@tomtom555)


    Hello.

    How to make in matches list/block link to Season and League ACTIVE?

    Option to match details is active od default. found option to Field too but not for Season and League

Viewing 5 replies - 1 through 5 (of 5 total)
  • Roch

    (@rochesterj)

    Hi there!

    Thanks for reaching out.

    I’m not sure if I get what you mean. If I understood correctly, you want to flag some competitions/seasons as inactive. If that’s the case we don’t have this option at the moment, unfortunately.

    Thanks!

    Thread Starter tomtom555

    (@tomtom555)

    no no. if you click on Season or competetition you would be redirected to a list of all matches of the selected Season or competetition

    Roch

    (@rochesterj)

    Oh, I see what you mean now. We don’t have such link. You can create a calendar and add it to your tables (before them maybe?) but there’s no automated way of linking them in the events calendar/blocks/lists.

    Thanks!

    There is a “manual” solution. Just create a seasons / league match list.
    Then add this code to your theme’s functions.php file

    function link_words( $text ) {
    $replace = array(
    '2020-21' =>'<a href="link to your match list">2020-21</a>',
    'Premier League' => 
    '<a href="link to your match list">Premier League</a>'
    );
    $text = str_replace( array_keys($replace), 
    $replace, $text );
    return $text;
    }
    add_filter( 'the_content', 'link_words' );
    add_filter( 'the_excerpt', 'link_words' );
    Roch

    (@rochesterj)

    Hi there,

    That’s a good idea, plou!

    Thanks for sharing it.

    Kind Regards,
    -Roch

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to Season and League’ is closed to new replies.