• Hi guys

    I’m setting the calendars pages.
    Is possibile to filter, in the frontend, calendar by play-day?

    Any available layouts can’t permit that.
    List and blocks calendar is fine, but I wuold like to display the calendar splitted by playday!
    I can modify the number of matches displayed, but some league have 7 matches for playday, other 5, other 8…

    I edited event-blocks.php, arranged that: https://www.futsalpontedera.it/calendar/serie-c1-201516/

    I would like to display all the matches of a calendar in a single page, 2 for row. I wanna disable the date for every match, and put this in top of play-day block, next to a play-day name (Example: XX playday – GG/MM/AAAA).
    So that, the navigation numbers at bottom will not be necessary anymore.

    Is possibile to do that? How?

    https://www.ads-software.com/plugins/sportspress/

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

    (@rochesterj)

    Hi!

    Thank you for your message.

    This is possible only with some custom code. A custom taxonomy for example is going to help you there

    Kind Regards,
    -Roch

    Thread Starter maranzano

    (@maranzano)

    Hi Roch

    Usually I use code like to create taxonomy for post:

    function create_my_taxonomies() {
    
        register_taxonomy(
            'playday',
            'post',
            array(
                'hierarchical' => false,
                'label' => 'playday',
                'query_var' => true,
                'rewrite' => true
            )
        );
    }
    add_action('init', 'create_my_taxonomies', 0);

    For standard use, I have to write that inside fuction.php… for this plugin which file I have to modify instead?

    Roch

    (@rochesterj)

    Hi!

    A separated plugin or adding that in your theme would be better. I wouldn’t recommend editing plugin files directly

    Kind Regards,
    -Roch

    Thread Starter maranzano

    (@maranzano)

    Which separated plugin could you advise me to do this work?
    Or, how can I add this in theme?

    PS
    But why you can’t add this detail at the plugin? I think is essential, because every sport have play-day ??

    Roch

    (@rochesterj)

    Hi!

    It’s actually a WordPress thing, if you add it in the plugin you’ll lose it when you update, as we don’t have “child plugins”.

    You can either add it in your theme functions.php file, or in a custom plugin (a plugin made just for this custom code).

    Kind Regards,
    -Roch

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘calendar divided by play-day ?’ is closed to new replies.