• Hello,

    I’m adding a list of events to the front page of my website and I’m using an events_block shortcode to display the events for the current week.

    The events are showing up fine but the teams are not linked. The documentation suggest that this is possible: “Setting link_teams to 1 links team names to their pages”.

    You can see it in action here: http://russell-hill.co.uk/bhplta/ (I’m hiding some unwanted info with CSS)

    And this is the shortcake I’m using:
    [event_blocks id=”194″ link_teams=”1″ date=”w”]

    Ideally I’d like to be able to link each team to their respective pages and then be able to style the ‘vs’ in a different colour but currently the events outputted are coded as one line of text wrapped in an H4 tag.

    Is any of this possible?

    Thanks
    Russell

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

    (@rochesterj)

    Hi Russel!

    Thansk for reaching out!

    What happens when you disable all your plugins but SportsPress and enable a default theme such as rookie or twenty sixteen?

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter waylaid

    (@waylaid)

    Thanks Roch,

    On my local version of the site I have turned off all the plugins except Sportspress and activated Rookie but I’m still getting the same result:

    <h4 class=”sp-event-title”>Saltdean vs Rookery</h4>

    If I use this code below everything works as expected except the link_teams bit:
    [event_blocks id=”194″ status=”future” link_teams=”1″ paginated=”1″ rows=”10″ order=”DESC” show_all_events_link=”1″]

    Any ideas?
    Thanks
    Russell

    Roch

    (@rochesterj)

    Hi Russell!

    Please kindly check under SportsPress > Settings > Teams, if you have the “link teams” option enabled.

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter waylaid

    (@waylaid)

    Hi Rich,

    I checked settings and the Linked Teams option is ticked…

    If I look at any single event page via the link in the post (not a shortcode) then the teams are linked but when I use the event_block to display a calendar of events as in the front page of my website then the teams aren’t linked.

    For now I’ve used jQuery to wrap a span tag around ‘vs’ so I can style that to look a bit better but it would be nice to have the teams clickable 🙂

    Thanks
    Russell

    Thread Starter waylaid

    (@waylaid)

    (ps I meant Roch but, spellcheckers….)

    Roch

    (@rochesterj)

    Hi Russel!

    No worries about my nime, my own spellchecker sometimes troll me as well 🙂

    As for your issue, that’s a weird one. Our dev team is out for the weekend, but I’ll get in touch with them to check what else could cause this.

    If you have any other issues in the meantime please let us know!

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter waylaid

    (@waylaid)

    🙂
    Thanks Roch,

    Have a good weekend.

    Thread Starter waylaid

    (@waylaid)

    Hi Roch,

    Just wondered if you ever heard back from the dev team about this issue?

    Regards
    Russell

    Roch

    (@rochesterj)

    Hi Russell!

    Thanks for checking back.

    Actually no.

    […]

    • This reply was modified 9 years ago by Roch.
    Roch

    (@rochesterj)

    Ops, WP sent the reply before I typed the rest 🙂

    But I’m pinging them once again.

    Thanks!

    Kind Regards,
    -Roch

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Link Teams in shortcode is not working’ is closed to new replies.