• Resolved hesam salehi

    (@persenal)


    Hi

    Event Blocks widget only have this items:

    calendar title
    Display logos
    Display league
    Display season
    Display matchday
    Display venue
    How can I add officials to this block?

    do you have any code to edit sportspress/event-blocks.php file for this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @persenal ,

    You need some extra code to achieve this. To take some ideas give a look at the following templates:

    event-officials.php
    event-officials-list.php
    event-officials-table.php

    Thanks,
    Savvas

    Thread Starter hesam salehi

    (@persenal)

    thanks @savvasha
    Unfortunately, I do not have enough coding skills

    can anyone replace venue item with officials in this code: ?

                            <?php
                            if ( $show_venue ) :
                                $venues = get_the_terms( $event, 'sp_venue' );
                                if ( $venues ) :
                                    $venue = array_shift( $venues );
                                    ?>
                                <div class="sp-event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><?php echo wp_kses_post( $venue->name ); ?></div></div>
                                                            							<?php endif; ?>
    



    Plugin Contributor Savvas

    (@savvasha)

    Hi @persenal ,

    You can always hire a developer to assist you. https://jobs.wordpress.net/ is a place you can seek for that kind of help.

    Thanks,
    Savvas

    Thread Starter hesam salehi

    (@persenal)

    thanks for your assistance and recommendation @savvasha

    May I please put all the items of the competition in the block in the next versions of the plugin, not just some items?

    thanks again

    Plugin Contributor Savvas

    (@savvasha)

    I will forward it to our developers.

    Thanks,
    Savvas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add officials itome to Event Blocks widget’ is closed to new replies.