• Resolved mywebdesign

    (@mhwebdesign)


    Hi all,

    A few questions:

    1. If I have custom fields I am using for fixtures (e.g Match Day) how do I format them in CSV in order to have them import?

    2. In the documentation it says you can only import 3-4 events at a time. That’s completely ridiculous given I have 2 previous seasons events (about 50 events) to import! Is there a way around that, or is it just not recommended?

    3. What is the hook for “MATCH DAY” field, and how can I get that field to display in custom widgets/themes? I only need MATCH DAY, not the other event fields as I need to add Match Day to a third party widget.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mywebdesign

    (@mhwebdesign)

    Answered #1 myself – if you add the column with the exact same Name in CSV file, as long as it is at the end of spreadsheet it will work and import.

    Thread Starter mywebdesign

    (@mhwebdesign)

    Answered #2 myself. You can at least import 10 events at a time as was able to do that.

    #3 waiting on an answer for.

    Plugin Contributor Savvas

    (@savvasha)

    Hi there @mhwebdesign ,

    About the #2 question, the actual limit is “set” by your server, not SportsPress. The “stronger” server you have, then you can import more events by once.

    About #3 question. “Matchday” is a post_meta called sp_day. So you can call it with the get_post_meta(post_id,"sp_day",true) function. Where post_id is the ID of your event. https://developer.www.ads-software.com/reference/functions/get_post_meta/

    Thanks,
    Savvas

    • This reply was modified 4 years, 8 months ago by Savvas. Reason: move link
    Thread Starter mywebdesign

    (@mhwebdesign)

    All good with #2, it’s a Hex Core Intel with 6GB RAM. Overkill perhaps but the host is top notch ??

    Regarding #3 you’ll have to excuse me as I’m pretty basic when it comes to php/css coding… so does that mean in the PHP for that specific widget I’d run a get post meta call?

    and if I wanted to call “LEAGUE” to display the league elsewhere I’d use this?
    get_post_meta(post_id,"sp_league",true)

    I’ve found the SP_???? under the “class-sp-ajax.php” file. Am I correct that is where I’ll find relevant fields to call?

    Plugin Contributor Savvas

    (@savvasha)

    You need to dig in /templates/ php files code to get familiar of how you can call most of the info you want. sp_day is a post_meta so you can call it with get_post_meta. sp_league in the other hand is a Custom Post Type. A lot different than post_meta.

    Thanks,
    Savvas

    Thread Starter mywebdesign

    (@mhwebdesign)

    Marking this one as solved as the solution was awesomely provided by Savvas in my other thread here:

    https://www.ads-software.com/support/topic/feature-added-in-v2-6-15-event-specs-in-block-not-working/#post-12526526

    Thanks Savvas ??

    Plugin Contributor Savvas

    (@savvasha)

    You are very welcomed ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Importing custom created fields / Match Day question.’ is closed to new replies.