Title: Problem with shortcode
Last modified: August 21, 2016

---

# Problem with shortcode

 *  Resolved [Dre_MPMG](https://wordpress.org/support/users/dre_mpmg/)
 * (@dre_mpmg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/)
 * Great plugin! I would like to place the shortcode on different pages to show 
   the views. I’ve tried it, but it does not work! The code displays on every page
   the same number of views.
 * I use this code [slimstat f=’count-all’ w=’ip’] but I want to show the views 
   of the various sides.
 * example:
 * [http://www.mywebsite.com/test1](http://www.mywebsite.com/test1) [slimstat f=’
   count-all’ w=’ip’]
    [http://www.mywebsite.com/test2](http://www.mywebsite.com/test2)[
   slimstat f=’count-all’ w=’ip’] [http://www.mywebsite.com/test3](http://www.mywebsite.com/test3)[
   slimstat f=’count-all’ w=’ip’]
 * do I have to use the ids of the pages in the code or …? Thanks for your time!
 * [https://wordpress.org/plugins/wp-slimstat-shortcodes/](https://wordpress.org/plugins/wp-slimstat-shortcodes/)

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

 *  Plugin Author [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672472)
 * Yep, you need to use the lf attribute of this shortcode:
 * lf=’permalink equals /test1′
 * or
 * lf=’resource_id equals 324′
 * A vote/review for our plugins would be a nice way to say thank you!
    [http://wordpress.org/support/view/plugin-reviews/wp-slimstat-shortcodes](http://wordpress.org/support/view/plugin-reviews/wp-slimstat-shortcodes)
 *  Thread Starter [Dre_MPMG](https://wordpress.org/support/users/dre_mpmg/)
 * (@dre_mpmg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672506)
 * Thank you for the quick reply but it still does not work …
    all pages have the
   same views number!
 * _Where is my mistake??? _
    [http://www.mywebsite.com/test1](http://www.mywebsite.com/test1)::
 * [slimstat f=’count’ lf=’permalink equals /test1′ w=’ip’]
 * [http://www.mywebsite.com/releases/test2](http://www.mywebsite.com/releases/test2)::
 * [slimstat f=’count’ lf=’permalink equals /releases/test1′ w=’ip’]
 * Thanks for your time!
 *  Thread Starter [Dre_MPMG](https://wordpress.org/support/users/dre_mpmg/)
 * (@dre_mpmg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672579)
 * or ::
 * [slimstat f=’count’ lf=’[http://www.mywebsite.com/releases/test2&#8242](http://www.mywebsite.com/releases/test2&#8242);
   w=’ip’]
 *  Plugin Author [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672584)
 * I’m sorry, my bad. I spelled the filter wrong. It should be “resource”, not “
   permalink”. Please check the FAQs for more information.
 * lf=’resource equals /test1′
 *  Thread Starter [Dre_MPMG](https://wordpress.org/support/users/dre_mpmg/)
 * (@dre_mpmg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672596)
 * Thank you, it works like a charm! 5 STARS
 *  Plugin Author [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672608)
 * Hi, giving us 5 stars **for real** would be a nice way to say thank you:
 * [http://wordpress.org/support/view/plugin-reviews/wp-slimstat-shortcodes](http://wordpress.org/support/view/plugin-reviews/wp-slimstat-shortcodes)
 * and
 * [http://wordpress.org/support/view/plugin-reviews/wp-slimstat](http://wordpress.org/support/view/plugin-reviews/wp-slimstat)
 * Really appreciated.

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

The topic ‘Problem with shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-slimstat-shortcodes.svg)
 * [WP SlimStat Shortcodes](https://wordpress.org/plugins/wp-slimstat-shortcodes/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat-shortcodes/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/problem-with-shortcode-6/#post-4672608)
 * Status: resolved