Linux 软件免费装
Banner图

MWT Search Steer – Hide from Search & Search Keywords

开发者 cornelraiu-1
更新时间 2026年11月7日 23:39
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

search exclude from search search results hide from search search keywords

下载

1.0.0 1.0.1

详情介绍:

WordPress search only looks at a post's title, excerpt and content. MWT Search Steer gives you three controls, post by post: Set them in the editor sidebar, in quick edit, or for many posts at once with bulk edit and the "Hide from site search" bulk action. A Search column and a filter on the post lists show which posts have search settings. Moving from another plugin MWT Search Steer imports the posts that Search Exclude, Hide from Search and Hide Posts hide from search, with one click under Settings > MWT Search Steer. The other plugin's data is not changed, so you can import, check, and then deactivate it. Built to stay out of the way Settings Under Settings > MWT Search Steer you choose: Case and accents are ignored, so "Café", "cafe" and "CAFE" are the same keyword. For developers Search settings apply to the main search query on the front end. To apply them to another query, use the filter: add_filter( 'mwtss_applies_to_query', function ( $applies, $query ) { return $applies || $query->get( 'my_live_search' ); }, 10, 2 ); To turn them off for one query, pass 'mwtss_skip' => true to WP_Query.

安装:

  1. Install and activate the plugin from Plugins > Add New.
  2. Open a post and use the Site search panel and the keyword panels in the sidebar.
  3. Optional: change the matching and other options under Settings > MWT Search Steer.

屏幕截图:

  • The editor sidebar: hide the post from site search, and add its search keywords and stop keywords.
  • The Search column shows each post's keywords, stop keywords and whether it is hidden, and the filter lists the posts that have them.
  • Quick edit changes keywords, stop keywords and "Hide from site search" without opening the post.
  • The settings: post types, how keywords match, which list wins, the order of the results and where search settings apply.
  • Import the posts that Search Exclude, Hide from Search or Hide Posts hide from search, with one click.

常见问题:

Does a hidden post disappear from my site?

No. It only stays out of your site's search results. It is still listed in menus, archives and widgets, and reachable at its own address.

Does it hide posts from Google?

No. MWT Search Steer controls the search on your own site. To keep a page out of search engines, use your SEO plugin's "noindex" setting.

Why does a hidden post still show in my live search?

Live search boxes often search through the REST API or admin-ajax.php. Tick "Also apply them to REST API and AJAX searches" in the settings. Live search plugins that run their own queries can call the mwtss_applies_to_query filter, described below.

Does it work with Relevanssi, SearchWP, Jetpack Search or ElasticPress?

No. Those plugins replace WordPress's own search query with their own index, and MWT Search Steer changes WordPress's own query. Use their exclusion features instead.

Does it work with WooCommerce?

Yes, for the product search on the shop's search page, which uses WordPress's own query. Choose Products under Post types in the settings. WooCommerce's own visibility still applies: search keywords do not bring in a product whose catalog visibility leaves it out of search, or an out-of-stock product when the shop hides those.

How do I import from Search Exclude, Hide from Search or Hide Posts?

Go to Settings > MWT Search Steer and click the import button for your plugin. The section shows only the plugins that have hidden posts on your site. Search Exclude can also hide every post of a type, a category or an author. Those settings are listed but not imported: select the posts in their list and use the "Hide from site search" bulk action.

Does a search need to match every word?

No. A post is added when any keyword matches the search. With the keyword refund, a search for "refund status" finds the post.

Can visitors see the keywords?

No. Keywords have no public pages and are not printed anywhere on the site. Through the REST API, only users who can edit posts can read them.

What happens to my settings when I delete the plugin?

They are kept, unless you tick "Delete all keywords, stop keywords, hidden flags and settings when the plugin is deleted" in the settings first.

更新日志:

1.0.1 1.0.0