0

Is it possible to show limitation (dynamically) of the contents near the search term value. I knew how how to using excerpt, but what I am talking about is, search result content limitation character only near the search term value.

Thanks, Zee

5
  • I'm confused. Do you want to limit the actual showing of the search query ( the keywords that the users searches ) on the search page. Or do you want to limit the content that the search results pull?
    – Howdy_McGee
    Commented Nov 10, 2014 at 18:28
  • Thanks for the reply, My planning, I am used highlight text based on search terms. Currently, I am using excerpt but some of the highlighted not appear on search result because I am limiting the character using excerpt (e.g. excerpt 20 chars, the search results founded by wp, but the terms in the next 20 chars in contents that why not showing up). is more dynamically excerpt near the terms result
    – da_root
    Commented Nov 10, 2014 at 18:53
  • You want to find the search terms in the post content and display the text surrounding those terms?
    – s_ha_dum
    Commented Nov 10, 2014 at 19:09
  • Yes, exactly I want to show it. but got stack
    – da_root
    Commented Nov 10, 2014 at 19:26
  • Mmmm...guess no one can help me. Let me trying to summarize:show an excerpt of the place in the feature where the search result/hit is?
    – da_root
    Commented Nov 16, 2014 at 19:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.