Black Week GPLClub -35% 6-month, yearly and lifetime
Prices go
up in
FINAL HOURS 0days 00h 00min 00sec
See plans
Prices up in
GPLClub
SearchWP Term Highlight

SearchWP Term Highlight

v2.1.14 Follow
🔌 Plugin by SearchWP Official site

Antivirus scan

Powered by ClamAV

✅ Verified clean

This product file has passed our security filters.

Want to run a fresh ClamAV scan right now? Takes a few seconds and shows scanner version, signature DB and live result.

This can take 5 to 30 seconds.

✓ !

Clean file Threat detected

No threats detected in this file.

File
Size
Scanned
ClamAV
Signature database

⚡ Powered by ClamAV

!

Scan could not be completed

Report product

If you detected an issue (broken file, malware, inappropriate content, etc.) let us know and we'll review it ASAP.

Sign in to report

Version

v2.1.14

Updated

Updates Automatic

Newer version out, or a problem?

About SearchWP Term Highlight

A result without the searched word in sight makes visitors lose patience

Someone searching your site wants to know within a second whether a result is useful. If the title and excerpt don't show where what they typed appears, they have to open each page to check, and that is where patience runs out. Term Highlight marks those words inside the results.

Works on top of SearchWP and only in native WordPress searches

Term Highlight acts on native WordPress searches, and that defines both what it does and what it leaves out.

  • Highlights the searched terms in the title and excerpt of each native WordPress search result.
  • Wraps each term in a span with the class searchwp-highlight, so you can style it to match your design from your CSS.
  • Requires: SearchWP installed and active, since this is an extension of that search plugin.
  • Left out: results from supplemental search engines, which are not highlighted automatically.

Excerpts that show the searched term even when it sits mid-text

Term Highlight builds an excerpt from the content or from a custom field that contains at least one of the searched terms, and it highlights those terms too. By default it includes 55 words.

Settings to decide how excerpts are displayed

You can control highlighting with WordPress filters. These are the filters the extension documents:

  • searchwp_th_auto_filter_excerpt: enabled by default, it replaces the_excerpt() on searches with an excerpt containing the terms. You can turn it off if you prefer to generate the excerpt yourself.
  • searchwp_th_num_words: changes the number of words in the excerpt, which is 55 by default.
  • searchwp_th_excluded_engines: lists the search engines where highlighting is not applied.
  • searchwp_th_password_required_message: sets the text shown on password-protected entries.

Supplemental searches: highlighting has to be added in your template

Term Highlight does not highlight supplemental search engine results automatically. To see them highlighted, pass the title, excerpt and custom fields through the extension's highlighter inside your results template, just before displaying them.

It is marked as deprecated and will be removed soon

Term Highlight is marked as deprecated and will be retired shortly. If your project starts now, check the current SearchWP highlight documentation first before relying on this extension.

Frequently asked questions about SearchWP Term Highlight

Which part of the result gets highlighted?

The searched term in the title and in the excerpt of native WordPress search results.

How many words does the generated excerpt have?

By default, 55. If you want more or fewer, change it with the searchwp_th_num_words filter.

Can I stop replacing my theme's excerpt?

Yes. With the searchwp_th_auto_filter_excerpt filter turned off, the_excerpt() is not automatically replaced on searches.

How do I change the highlight color?

The terms are wrapped in a span with the class searchwp-highlight, so you define the color in your stylesheet.

Version history

  • v
    2.1.14 Current 28 May 2024

Customer reviews

Sign in to leave a review. Only people who have the product can review it.

No reviews for this product yet.

Frequently asked questions

  • GPL (General Public License) is the license under which WordPress and most premium plugins/themes are distributed. It grants you the right to use, modify and redistribute the software in as many projects as you want, with no domain restrictions.

  • Yes. With membership you get automatic updates via our GPLClub Updater plugin (installed on your WP, detects new versions and applies them). With individual purchase, you get one year of manual updates from your account.

  • Depends on the plan. Monthly: 3 domains. Semi-annual: 7. Annual and Lifetime: 15. Individual purchase: 1 domain.

  • GPLClub offers its own support for installation, configuration and compatibility. For direct support from the original author (feature requests, product-specific bugs), a license purchased from the author is required.