Title: Problem with short code
Last modified: April 11, 2017

---

# Problem with short code

 *  Resolved [dragolcho](https://wordpress.org/support/users/dragolcho/)
 * (@dragolcho)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/)
 * Hi there!
 * First of all, I would like to thank you for the wonderful plugin. It is no wonder
   that so many websites are using it!
 * I have a small issue that lies in the integration of Slimstat and (I think) Shareaholic.
    - I am using the following shortcode to display a list of most popular posts:
    - `[slimstat f='top-all' w='post_link']content_type equals post &&& limit_results
      equals 5[/slimstat]`
    - This is fine for most of the pages, when I publish a post and share it with
      its correct URL
    - But when someone (or even I myself) shares the new post with Shareaholic a
      bunch of parameters is added to the URL
    - `?utm_campaign=shareaholic&utm_medium=facebook&utm_source=socialnetwork`
    - Slimstat interprets that as a different URL and as a result I can have several
      entries of the same post in my top 10 list
    - As a side note: I get the two results combined with my “Top Web Pages” report,
      but separated in my “Top Exit Pages” report
    - You can see an example on my blog [http://www.fromgnometogoliath.com/](http://www.fromgnometogoliath.com/).
      There are two pages called “Emotional Intelligence – 10 Ways to Improve Your
      Self Awareness” – number 1 and number 4.
 * I would appreciate any help. Ideally I would like Slimstat to ignore the parameters
   after the URL and I would like some advises on how to fix the current database
   entries (in the worst case I am thinking about an UPDATE SELECT statement directly
   in the database).
 * Thanks in advance!

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/#post-9018228)
 * Hi [@dragolcho](https://wordpress.org/support/users/dragolcho/),
 * You make a very good point, indeed. I will forward your request to the developer,
   to see if we can do something to ignore the query strings attached to permalinks,
   when creating the shortcode.
 * Stay tuned,
    Jason
 * PS: thank you for your kind words and review!
 *  Thread Starter [dragolcho](https://wordpress.org/support/users/dragolcho/)
 * (@dragolcho)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/#post-9029467)
 * Hi [@coolmann](https://wordpress.org/support/users/coolmann/),
 * Thank you for your reply!
 * I will appreciate if you keep me updated on the issue. If you do not wish to 
   fix it at the moment, I will try it myself. 🙂
 * BR,
    Valentin
 * PS: My positive review was well deserved!
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/#post-9039280)
 * Hi Valentin,
 * version 4.6.5 contains an updated shortcode syntax that allows you to ignore 
   query strings. Simply use the following code:
 * `[slimstat f='top-all' w='post_link_no_qs']content_type equals post &&& limit_results
   equals 5[/slimstat]`
 * Let me know if this solves your problem!
 * Best,
    Jason
 *  Thread Starter [dragolcho](https://wordpress.org/support/users/dragolcho/)
 * (@dragolcho)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/#post-9039598)
 * Hi Jason,
 * Works like a charm! Thanks!
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/#post-9040156)
 * Great!

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

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

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/problem-with-short-code-2/#post-9040156)
 * Status: resolved