Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25271

    Hi,

    finally I launched my site http://goo.gl/zE9U4 and realised, I forgot to test the search function

    http://goo.gl/D20mi

    The result displays shortcuts instead displaying the content of them.

    I’m extensivly using reusable content for showing content which is similar to many products.

    Is there a way to get it to work on the search results page as well?

    Thank you

    Tom

    #126341

    Hi Tom,

    Try adding the following at the end of your functions.php file:

    add_filter( 'the_excerpt', 'shortcode_unautop');
    add_filter( 'the_excerpt', 'do_shortcode');

    Regards,

    Devin

    #126342

    Thank you Devin, worked!

    #126343

    Glad we could help :)

    Let us know if you have any other questions or issues.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘shortcuts instead of content in search results’ is closed to new replies.