Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Results showing wrong description › Reply To: Results showing wrong description
September 15, 2021 at 9:24 am
#34761
Keymaster
Maybe the do_shortcode function does not work in that context for some reason.
Try maybe this variation:
echo wd_substr_at_word( wd_strip_tags_ws( apply_filters( 'the_content', get_asp_result_field('content') ), '<abbr><b>'), 200);
..or if that does not work, it should be almost equivalent to this:
echo wd_substr_at_word( wd_strip_tags_ws( apply_filters( 'the_content', get_the_content() ), '<abbr><b>'), 200);