Title: Using arguments in shortcodes
Last modified: July 13, 2018

---

# Using arguments in shortcodes

 *  [xesuspaniagua](https://wordpress.org/support/users/xesuspaniagua/)
 * (@xesuspaniagua)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/using-arguments-in-shortcodes/)
 * Hi,
    I want to use arguments in the shortcode to save time creating a query view.
   Is there any limitation to it? In my case I want to be the argument the category
   taxonomy of a portfolio post-type.
 * The Wp_query arguments generated of my view is:
    Array ( [paged] => 1 [posts_per_page]
   => 6 [offset] => 0 [post_status] => publish [ignore_sticky_posts] => 0 [orderby]
   => date [order] => DESC [post_type] => Array ( [portfolio] => portfolio )
 *  [tax_query] => Array
    ( [taxonomy_portfolio-types] => Array ( [taxonomy] => 
   portfolio-types [field] => id [terms] => Array ( [0] => 11 [1] => 10 [2] => 9)
 *  [operator] => IN
    [include_children] => )
 *  )
 * )
 * I wanted to get the argument terms of the taxonomy_portfolio-types.
    I tried 
   with [query id=”3″ args=”taxonomy_portfolio-types=11″], [query id=”3″ args=”terms
   =11″] but without success.
 * Any ideas?
 * Thanks

The topic ‘Using arguments in shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/query-wrangler/assets/icon-256x256.jpg?rev=3279076)
 * [Query Wrangler](https://wordpress.org/plugins/query-wrangler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-wrangler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-wrangler/)
 * [Active Topics](https://wordpress.org/support/plugin/query-wrangler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-wrangler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-wrangler/reviews/)

## Tags

 * [arguments](https://wordpress.org/support/topic-tag/arguments/)
 * [shotcode](https://wordpress.org/support/topic-tag/shotcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [xesuspaniagua](https://wordpress.org/support/users/xesuspaniagua/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/using-arguments-in-shortcodes/)
 * Status: not resolved