• Hi guys

    Is it possible to create additional tabs on the player and team pages?

    https://snipboard.io/HVEy4x.jpg

    I’ve got a few custom post types which I want to include as a tab (for example, Achievements, Breaks) but I can’t see where I can go to add them.

    Thanks in advance.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Hi @jbarker147

    But how is that possible, I mean do I have to create a breaks-player file for each player and somehow link it..or am I talking nonsense?

    Can you look at mine plz

    On the front page using tablepress I have a master break list, tablepress as a short code to where I can show only certain worded names I can use I used to have it inside profile but hated the look so removes it but behind a tab it would work perfectly.

    Could you share how you implement players own data or how I could add there own shortcode link.

    Just don’t get it there is only one file so can’t see without making loads how it would show grrr hate been thick at codes just it is rocket science to me lol

    Thanks kev

    Thread Starter jbarker147

    (@jbarker147)

    I previously used Tablepress (I think you suggested it a few years ago!) but I changed to Advanced Custom Fields which I’ve set up to add a Breaks section in each event/fixture. This uses a dropdown to search for the players, then enter the break, and add as many rows as needed. All of that data is then stored in the database and can be queried.

    https://snipboard.io/ucA78t.jpg

    My player-breaks file searches through the database for all events/fixtures and looks to see if any breaks have been recorded. Then it will check if that player matches the player who’s page you are looking at, and if it does then it’ll add it to the table with a link to the fixture in which it happened.

    https://snipboard.io/W6adFm.jpg

    It took a lot of work and hours to get the code right, and I’m still looking at ways of improving it especially as our data only goes back to 2016/17 at the moment but I’m looking to put more on from as far back as around 1992.

    Yes i remember @jbarker147

    woow your second picture looks brilliant!!

    Your obviously clued up with these coding things and that custom fields thing was Spanish to me even after reading zillion questions in their support.
    Tablepress saved my life as such as i much needed to be able to create lists for breaks etc.
    Can you remember and care to share how you got to show different shortcodes from tablepress in each sportspress tab?

    It doesn’t make sense how one player-breaks.php file can show individual lists/things in each profile.
    i was hoping i could just add a shortcode in each tab (editable tab) include the code and bobs your uncle but obviously i wasn’t thinking straight as i see now its not editable lol.

    kev

    • This reply was modified 5 years, 5 months ago by kev147.
    Thread Starter jbarker147

    (@jbarker147)

    You can add a shortcode into the tab, but if you’re using tablepress then it won’t know which player to display because they won’t be linked – it’ll always show the full table. I only ever had tablepress show the full list on the overall breaks page.

    The player-breaks file can use any shortcode, but that’s what the existing tabs are there for (for example, player details, statistics, fixtures, etc) so there’s no need to use shortcodes. The extra tabs are really for additional information outside of what Sportspress does, such as breaks, and achievements/roll of honour, etc.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Extra Tabs on Player or Team Pages’ is closed to new replies.