Title: Short code
Last modified: August 20, 2016

---

# Short code

 *  [danny80](https://wordpress.org/support/users/danny80/)
 * (@danny80)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/short-code-1/)
 * Hi
 * 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
 * [http://wordpress.org/extend/plugins/wordpress-hit-counter/](http://wordpress.org/extend/plugins/wordpress-hit-counter/)

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

 *  [jessiel9625](https://wordpress.org/support/users/jessiel9625/)
 * (@jessiel9625)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/short-code-1/#post-3151691)
 * same comment here. shortcode please 🙂
 *  [joshrodgers](https://wordpress.org/support/users/joshrodgers/)
 * (@joshrodgers)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/short-code-1/#post-3151692)
 * Ok,
 * 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](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 🙂
 * Josh

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

The topic ‘Short code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-hit-counter.svg)
 * [WordPress Hit Counter](https://wordpress.org/plugins/wordpress-hit-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-hit-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-hit-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-hit-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-hit-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-hit-counter/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [joshrodgers](https://wordpress.org/support/users/joshrodgers/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/short-code-1/#post-3151692)
 * Status: not resolved