• Resolved wp_joe_

    (@wp_joe_)


    Is it possible to get next match, recent results or upcoming fixtures and filter by competition ?

    E.g. I have two competitions, mens and womens, and I’d like to be able to show the next match only in the womens competition or in the mens competition.

    The visual composer widgets only seem to allow filtering by team name, but is there a shortcode or other function I can use?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think you’d have to create 2 seperate calendar lists – 1 for each competition.

    Thread Starter wp_joe_

    (@wp_joe_)

    ahh… this question was supposed to go a template author… but anyway.

    Thanks Gator, you can do that, but what I really want is just to get the next (upcoming) game in a specific competition. A calendar, won’t update automatically.

    The template I am using has queries like this

    get_posts(array(‘post_status’ => ‘future’, ‘posts_per_page’ => 9999, ‘post_type’ => ‘sp_event’, ‘order’ => ‘ASC’))

    and then iterates through the array to match a given team name.

    I was really hoping that there is a sportspress function or built in code that is more efficient!

    Thread Starter wp_joe_

    (@wp_joe_)

    no worries, I figured it out.

    Just had to look through the Sportspress code and read the wordpress docs to find the right taxonomy queries.

    Omg, please never use the above query for anything.

    oh, I see now. Sorry about the confusion.

    I’m glad it’s resolved!

    Please, let us know if you need anything else.

    Kind Regards,
    -Roch

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter by competition’ is closed to new replies.