Title: Short code [views]
Last modified: August 21, 2016

---

# Short code [views]

 *  Resolved [EVOgroup](https://wordpress.org/support/users/evogroup/)
 * (@evogroup)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/)
 * How i can make a shortcode for post views that will be displayed in the post?
   
   I want to call it [views]
 * Please any help?
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/#post-4413172)
 * It is indeed possible, thanks to the WordPress.com Stats API. You can learn more
   about the API here:
    [http://stats.wordpress.com/csv.php](http://stats.wordpress.com/csv.php)
   [http://phoxis.org/2011/04/24/wordpress-com-stats-api/](http://phoxis.org/2011/04/24/wordpress-com-stats-api/)
   [http://wpgr.org/2013/03/02/rendering-jetpack-stats/](http://wpgr.org/2013/03/02/rendering-jetpack-stats/)
 * You could also install this Jetpack add-on:
    [http://wordpress.org/plugins/jetpack-post-views/](http://wordpress.org/plugins/jetpack-post-views/)
   It already bundles a few methods to add Post Views to your posts.
 * I hope this helps.
 *  Thread Starter [EVOgroup](https://wordpress.org/support/users/evogroup/)
 * (@evogroup)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/#post-4413176)
 * I have the jetpack-post-views plugin but there is no shortcode to add the number
   of post views into the post with shortcode.
 * the only option to display it it via the template file and php
 * <?php echo get_post_meta( $post->ID, ‘jetpack-post-views’, true ); ?>
 * but i want to set it in a specific place inside the post so the only solution
   is a short code but i dont know how to do it and the author of jetpack-post-views
   plugin is not answering.
 * Please someone help me to write a simple short code to display number of post
   views.
 * Thanks
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/#post-4413204)
 * You might want to contact the plugin author [here](http://wordpress.org/support/plugin/jetpack-post-views)
   and ask them to implement this feature into their plugin.
 * In the meantime, you can build your own small plugin to extend the Jetpack Post
   Views plugin and add the `[jpviews]` shortcode, for example, like so:
 *     ```
       function jeherve_jpviews_shortcode() {
       	$post_id = get_the_ID();
   
       	return get_post_meta( $post_id, 'jetpack-post-views', true );
   
       }
       add_shortcode( 'jpviews', 'jeherve_jpviews_shortcode' );
       ```
   
 *  Thread Starter [EVOgroup](https://wordpress.org/support/users/evogroup/)
 * (@evogroup)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/#post-4413206)
 * That’s all i wanted, working great!!!
    THANKS Jeremy!!! You the best!!!
 *  Thread Starter [EVOgroup](https://wordpress.org/support/users/evogroup/)
 * (@evogroup)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/#post-4413207)
 * 5 Stars to you!

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

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

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [EVOgroup](https://wordpress.org/support/users/evogroup/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/short-code-views/#post-4413207)
 * Status: resolved