• Resolved simminch

    (@simminch)


    I have a page that I will be updating daily with statistics. Iwould like to know if there is a plugin that can retrieve the total on that page and display it as an image in my blog. It would be similar to displaying the current temperature only the number would be on a page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kafkaesqui

    (@kafkaesqui)

    To simplify the capture and display of this ‘total’ think about providing it as a custom field in your Page. You can then collect it anywhere with this bit of PHP/WordPress code:

    <?php
    $total_custom = get_post_custom(100);
    $total = $total_custom['total'][0]);
    ?>

    The value provided to get_post_custom() will be the ID for the Page. I assume in the code above the key used for the custom field is ‘total’. To display the value of total:

    <?php echo $total; ?>

    To turn it into an image, perhaps this plugin will do:

    https://www.coldforged.org/image-headlines-plugin-for-wordpress-15/

    See the section ‘Can I use it for things other than titles?’

    Thread Starter simminch

    (@simminch)

    Very cool. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin for Auto Updated Number taken from a page’ is closed to new replies.