• I would like to use “display posts” in several instances inside three sets of tabs, all of them referring to the same category (different tags).

    It works fine writing the category in each shortcode, which means… thousands of shortcodes.

    Is it possible to define a variable in the first tab to call that category in all the other cases?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I’m a user like you, and looking at the unresolved topics I saw your posting.

    I suppose you have seen on https://displayposts.com/docs/parameters/#display-parameters

    tag
    Display posts from a specific tag, or tags. You must use the tag slug(ex: example-tag), not the tag’s name (ex: Example Tag).
    Default: empty
    Example: [display-posts tag=”tag1, tag2″]

    taxonomy, tax_term, tax_include_children, and tax_operator
    Use these parameters to do advanced taxonomy queries. Use ‘taxonomy’ for the taxonomy you’d like to query, ‘tax_term’ for the term slug (or terms) you’d like to include, and ‘operator’ to change how the query uses those terms (most likely this field will not be needed). See Multiple Taxonomy Queries.
    Default: ‘taxonomy’ = empty , ‘tax_term’ = empty , ‘tax_operator’ = ‘IN’
    Example: [display-posts taxonomy=”color” tax_term=”blue, green”]

    That’s all I can deliver.

Viewing 1 replies (of 1 total)
  • The topic ‘Variables in display posts’ is closed to new replies.