• Resolved jesters94

    (@jesters94)


    Hi All,

    I am slowly getting up to speed with writing code and wondered if anyone had an idea of the Sportspress database structure as I now would like to see if I can start pulling data from here to use on my web page.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @jesters94,

    SportsPress uses standard WordPress tables to store most of its data by creating custom post types for things like teams, players, matches, and events. The main information is stored in the wp_posts table, while additional details about each item are saved as post meta in the wp_postmeta table. For example, player stats or match details are stored as custom fields linked to these posts. Taxonomies for leagues, positions, and seasons are managed using the default WordPress taxonomy tables (wp_terms, wp_term_taxonomy, and wp_term_relationships).

    If you’re looking to pull stats or lists for your web page, you can query these tables by post type and get any associated custom meta data. For more advanced projects or to automate data retrieval, consider using the SportsPress REST API, which allows you to access teams, players, matches, and events with simple endpoints.

    Thanks,
    Savvas

Viewing 1 replies (of 1 total)

The topic ‘Database Structure for Sportpress’ is closed to new replies.