• Resolved balloonsbyreds

    (@balloonsbyreds)


    Is there a shortcode available to display a current in play match and the user predictions?

    I’ve tried the shortcode [fp-next-matches group=”1″ date=”now”] which is half way there, can the “view other users” link be included in here?

    Many thansks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    There is a [fp-predictions] shortcode that displays all the predictions for a certain match. You can either call it with a parameter for the match, e.g. [fp-predictions match=1].

    Or you can link to a page and supply the match id in the URL (to make the page show the match dynamically based on the info you give in the URL). E.g. a page that you link to via https://myblog.com/pages/live-match?match=1 and that page then holds the shortcode [fp-predictions use_querystring="yes"]. That page can be re-used from another part of the plugin.

    Is that what you are looking for?

    The [fp-next-matches] uses the same code as the matches page (only with a sub set of matches). That component can also show the link to the match results. In fact, it already does for matches that have an end result (you can click on the score), but for matches that are not yet finished, you can’t click on the link because it is not visible. You can alter the template via a hook to always include the link. Should be relatively simple. I can give it a try tonight if you do not have any PHP experience.

    Plugin Author AntoineH

    (@antoineh)

    Even better, I found something in my archives ??
    Turns out I already made something like this in the past, just had to update it to newest pool version.

    If you activate this plugin, it will add the stats icon to your matches view.

    Thread Starter balloonsbyreds

    (@balloonsbyreds)

    I’m using [fp-predictions] to display every match in a month, some users are complaining that they have to scroll miles for the current game in play.

    A hybrid of [fp-predictions] and [fp-next-matches] is what I’m thinking, or the ability to add date=”now” to the shortcode [fp-predictions]

    Cheers

    Thread Starter balloonsbyreds

    (@balloonsbyreds)

    Just saw your second reply. That’s cracked it, thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘In play match’ is closed to new replies.