WordPress Hit Counter
Short code (3 posts)

  1. danny80
    Posted 3 years ago #


    I just wondering if there is short code for this plugin? or is there any way I can use it some where else other than widget?

    Thanks for great job


  2. jessiel9625
    Posted 2 years ago #

    same comment here. shortcode please :)

  3. joshrodgers
    Posted 2 years ago #


    Usually I don't like to modifying a plugin directly because when you update the plugin you have to be careful or you'll overwrite your code, however I do feel this is an enhancement to the plugin and I have a custom set of digits anyway - so I don't really think it matters at this point. If you'd like to add shortcode functionality to the plugin, the process is very simple:

    • Navigate to your plugins folder > wordpress-hit-counter
    • Open image.php and add the following function right before the ?> close: http://pastebin.com/79BSjikg
    • Save your file

    *If you'd like to add it to a page just use the shortcode: [wHitCounter]

    *If you'd like to add it to your template, wherever you'd like to see the counter use the following code: <?php echo do_shortcode("[wHitCounter]"); ?>

    Simple as that! Hope it helps :-)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Hit Counter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.