Title: Shortcode Help
Last modified: September 8, 2016

---

# Shortcode Help

 *  Resolved [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-help-14/)
 * I’ve read through [the documentation](https://slimstat.freshdesk.com/support/solutions/articles/5000631833-what-is-the-syntax-of-a-slimstat-shortcode-),
   but I’m stuck on this line,
 * resource: permalink of the page accessed on your site – please use this keyword
   instead of post_link, when filtering by resource
 * How would I filter by the resource url or by page id?
 * Thank you

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-help-14/#post-8160928)
 * Hi,
 * you can use the word “resource” for the URL, and “content_id” for PAGE ID. “post_link”
   cannot be used in filters, but only as a value in the “w” parameter of the shortcode.
   In other words you can have
 * `[slimstat f='count' w='post_link']....`
 * but not
 * `[slimstat f='count' w='id']post_link contains flowers[/slimstat]`
 * This last shortcode needs to be written as
 * `[slimstat f='count' w='id']resource contains flowers[/slimstat]`
 * I could give you the long explanation on why this is the case, but just accept
   it for what it is 🙂
 * Best,
    Jason
 *  Thread Starter [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-help-14/#post-8161090)
 * Okay, so I have:
 * `[slimstat f="count" w="id"]content_id equals $post_id[/slimstat]` which successfully
   returns the stats for a single page,
 * but I’m trying to get the count for a outbound link, and my best guess is:
 * `[slimstat f="count" w="outbound_resource"]contains $outbound_url[/slimstat]`
 * Both variables have values, so I think I’m screwing up the syntax somewhere.
 * Is there a way to get the count for the number of times an outbound_link has 
   been clicked?
    -  This reply was modified 9 years, 9 months ago by [chenryahts](https://wordpress.org/support/users/chenryahts/).
      Reason: syntax
    -  This reply was modified 9 years, 9 months ago by [chenryahts](https://wordpress.org/support/users/chenryahts/).
      Reason: syntax
 *  Thread Starter [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-help-14/#post-8161112)
 * Nevermind! Got it:
 * `[slimstat f="count" w="id"]outbound_resource contains $url[/slimstat]`
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-help-14/#post-8169040)
 * Great!

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

The topic ‘Shortcode Help’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/shortcode-help-14/#post-8169040)
 * Status: resolved