• Resolved eunde

    (@eunde)


    Hey, can anybody help me how I can display dynamic content from sportspress players or events. I found out that if a want to display the jersey number of players in a text field I can use the code “{{dc:post:meta key=”sp_number”}}”. But if I would like to display the position of the player, or let’s say the result of an event, what would the code for that be? THANKS FOR YOUR HELP!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @eunde ,

    The {{dc:post:meta... shortcode seems like part of a framework not related to SportsPress. SportsPress uses several shortcodes with guides found here: https://support.themeboy.com/category/337-shortcodes

    Thanks,
    Savvs

    Thread Starter eunde

    (@eunde)

    Hi Savvas, thanks for the quick response. I already visited the page-link you mentioned, but I did not find a solution for my problem. Because if I use for example the Shortcode [player_details id=”99″] it shows me all of the player details. If I just want to show the position of the player, is there a way to customize this shortcode to achieve that?

    Plugin Contributor Savvas

    (@savvasha)

    There is not an “easy solution” for that. You need to manually find what is the “key” for each meta and then use it somehow with your code. You can retrieve the different keys of a Player or a Team with a third party plugin like https://wordpress.org/plugins/jsm-show-post-meta/

    Have in mind that not all info stored as post-meta. Some info (like player position, season, league etc) are stored as custom taxonomies.

    Thanks,
    Savvas

    Thread Starter eunde

    (@eunde)

    I tried the plugin and found out that jersey number is stored as meta data and as you say position is not. does anybody know if there is a way to customize the [player_details] shortcode for just showing position?

    Plugin Contributor Savvas

    (@savvasha)

    You can copy /plugins/sportspress/templates/player-details.php file to /your-child-theme/sportspress/ folder and alter as you wish

    Thread Starter eunde

    (@eunde)

    I’m sadly not into php coding… 😛

    Plugin Contributor Savvas

    (@savvasha)

    Then I am afraid you will need some support from a PHP Developer. A great place to look is here: https://jobs.wordpress.net/

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

The topic ‘Sportspress Meta Fields’ is closed to new replies.