• Resolved Conceptio

    (@conceptio)


    Hello,
    we follow your guide to “Include the Post Content in the Search Results”.
    But it seems shortcodes in the post are not executed, just plain text.
    Is there any workaround ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    The only workaround for this is by editing the class-frontend.php

    But this will mean you lose the changes with the next update ( if you install it ).

    This line runs strip_shortcodes.

    Not sure if the shortcode you’re trying to run will output the content as expected, but you can test it by changing that line to this.

    
    $store_meta['description'] = apply_filters( 'the_content', $page_object->post_content );
    
    Thread Starter Conceptio

    (@conceptio)

    Works like a charm.
    We just need to remember to change again the line after next update.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No Shortcode in Post Content’ is closed to new replies.