• Resolved yosmc

    (@yosmc)


    I’m currently renovating an old (if not to say ancient) website, which used to embed a slimstat map of visitors. I can see from my notes that – surprisingly – show_world_map() didn’t do what I wanted, ultimately I got this to do the trick:

    wp_slimstat_reports::slimstat show_report_wrapper( ‘slim_p6_01’ );

    Now that show_report_wrapper() has been removed (probably years ago), and before I spend half a day figuring out what to use instead, is there an easy way to emulate what that function used to do, so I don’t need to start from scratch?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @yosmc,

    Thank you for reaching out!

    I’m sorry to hear you’re having difficulty finding an alternative to the show_world_map() function. To display the world map, you can use the following shortcode as an alternative:

    [slimstat f=’widget’ w=’slim_p6_01′][/slimstat]

    Additionally, you can find examples of frequently used shortcodes for WP Slimstat here:
    Examples of Frequently Used Shortcodes

    For further guidance on retrieving the data you need, I recommend checking this link as well:
    Mastering WP Slimstat Shortcodes

    If you need any further assistance or have any questions, please don’t hesitate to reach out. We are always here to help!

    Best regards,
    Mehmet




    Thread Starter yosmc

    (@yosmc)

    Thanks for the quick reply. I’ve hardcoded this into single.php of my theme, so I’m afraid that using a shortcode won’t work here.

    You’re very welcome! I’m glad I could help.
    Based on your situation, you can use the do_shortcode function like this:

    echo do_shortcode('[slimstat f="widget" w="slim_p6_01"]');

    Best regards,
    Mehmet

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

The topic ‘Replacement for show_report_wrapper()’ is closed to new replies.