WordPress.org

Forums

Better Search
[resolved] Stop displaying shortcodes (5 posts)

  1. tcarlsen
    Member
    Posted 3 years ago #

    The search result is displaying "alternative" shortcodes as you can see in this screenshot here. maybe an option to filter out all context surrounded by [ and ] would help

    http://wordpress.org/extend/plugins/better-search/

  2. tcarlsen
    Member
    Posted 3 years ago #

    better-search.php >> line 399

    function get_bsearch_excerpt($content){
    $output = strip_tags($content);
    /* adding this to replace shortcodes */
    $output = preg_replace('/\[.*\]/', '', $output);

  3. Ajay
    Member
    Plugin Author

    Posted 3 years ago #

    Thank you. I'll add this into the next version.

  4. heelo
    Member
    Posted 2 years ago #

    hello
    i would like to bring my search results as a heading with an underline and only 2 lines of content(how can i limit the contents listed after the heading) also i would like to remove the short code from the desciptive content
    please provide me with a solution

    Some thing like this
    Hai i am heelo

    hai i am heelo from india ,Lorem Ipsum dolor sit amet,Lorem Ipsum dolor sit amet,Lorem Ipsum dolor sit amet,Lorem Ipsum dolor sit amet,Lorem Ipsum....

    Thank you

  5. heelo
    Member
    Posted 2 years ago #

    hello
    i would like ask for one more help,how to leave some space in between the search results
    Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic