Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Results showing wrong description › Reply To: Results showing wrong description
September 14, 2021 at 9:18 am
#34728
Keymaster
Hm, interesting. Maybe the HTML stripping is also skipped. Try this:
echo wd_substr_at_word( strip_tags( do_shortcode( the_asp_result_field('content', false) ), '<strong>'), 160);
This should get rid off most of HTML tags, and strip the length to 160 characters max.