• Resolved Mindfill

    (@noahfischer)


    Hi,

    I am using Query Wrangler widget–its working great. I want to display part of a post in the sidebar using this widget but it must recognizes the current argument. What can I type into the “contextual arguments” field to do this? Is there another way that Query content in a widget or shortcode can recognize current argument?

    Thanks!

    https://www.ads-software.com/plugins/query-wrangler/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mindfill

    (@noahfischer)

    Nevermind, I solved it—I didn’t need to use Query Wrangler Widget options, went with a shortcode to apply a filter to the current post/argument:

    [query id=12 args=”p={{post:ID}}”]

    Initially that also didn’t work but then I realized that no shortcodes of any kind were working
    in the sidebar, and I added into functions.php

    add_filter(‘widget_text’, ‘do_shortcode’);

    And now the power of Query Wrangler is unlocked!

    Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi Noah,

    Glad that worked out!

    For future reference, you should be able to achieve the same result by placing the p={{post:ID}} code into the Contextual Arguments text field on the query wrangler widget.

    Let me know if you run into any issues.

    Thanks,
    Jonathan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get Query Wrangler Widget to recognize current argument?’ is closed to new replies.