Shortcodes in results

Forums › Forums › Search & Filter Pro › Shortcodes in results

Tagged: 

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #132328

    Hello,

    I’m using a shortcode to display the search and filter results.

    However, the output which is shown in the results also has shortcodes in. Is there a setting, or a bit of additional code to allow for processing of shortcodes within results?

    The example is that the results shown include some [audio][/audio] shortcodes, but they’re just being outputted rather than being processed.

    Thank you!
    Steph

    Trevor
    #132329

    You would probably have to enclose the php that outputs the content inside a do_shortcode function.

    Anonymous
    #132331

    Hello,

    As I’m using a shortcode to output the results, I already have that, but it doesn’t seem to work for the results generated.

    I have:

    echo do_shortcode(‘[searchandfilter id=”851″ show=”results”]’);

    Trevor
    #132366

    How about running the do_shortcode within the results.php file is what I meant?

    Anonymous
    #132529

    ???? Forgot about that!

    Thank you, all sorted.

Viewing 5 posts – 1 through 5 (of 5 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.