• Resolved polarbjorn

    (@polarbjorn)


    Hello, love the plugin. I grab json api from a site into my table.
    Pcgamer
    I want to change things like “us”, “dk” to .gif image of flags is possible. (usa.gif, denmark.gif)
    Also the numbers look weird.

    Here is the original table I grab import info from:
    esportsearnings.com

    Hoping for some nice ways of doing this 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m afraid that there’s nothing really that I can do here. If this is the raw data that the API delivers, you’ll have to change it via a custom script afterwards.
    Your best chance probably is to use the plugin filter hook “tablepress_cell_content”. With that, you can do thing like search/replace and replace the country abbreviations with HTML code for flags, or you could format the numbers better. All this will require custom PHP code however.

    Regards,
    Tobias

    Thread Starter polarbjorn

    (@polarbjorn)

    Ok, thanks for your quick reply 🙂

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change letters to images’ is closed to new replies.