• 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.