• Im looking to create an upcoming and previous game widget for my home page. I see Sportspress comes bundled with such features but Im looking to custom design these ones to match my homepage.

    Is it possible to query the latest post from the event category? Would it be as simple as choosing the taxonomy (sp_event?) for it?

    https://ww.wp.xz.cn/plugins/sportspress/

Viewing 1 replies (of 1 total)
  • Thread Starter walkities30

    (@walkities30)

    Ok well I figure this is silly because of course it’s easy to query. I suppose now I’m wondering how to target specific values.

    Im designing for a specific team and want just there results on the main page but styled my own way. I’ve setup a league table with just the team and the results I want. What Im looking for is not to show it in a table and instead just text like

    W-L-OTL (PTS)

    For example:
    10-2-1 (21 PTS)

    I’ve queried

    'posts_per_page'       	=> '1',
        'post_type'				=> 'sp_table',
        'ignore_sticky_posts'  	=> true,
        'order'                	=> 'DESC',
        'orderby'              	=> 'date',
        'post_title'			=>  'table-name',

    Wondering though how I can target the values (wins, losses etc)? I’ve tried a vardump on the query but can’t seem to find the info I need.

    Also with the league tables if I only add one team is it still possible to show what position they are in the overall league standings or is it based on the league table?

Viewing 1 replies (of 1 total)

The topic ‘Can We Query Events?’ is closed to new replies.