Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 1.0.10

searchwp_enable_attribution_{post_type}

One of SearchWP’s most powerful features is it’s ability to attribute search result weight from one post to another. If you would like to disable attribution for a post type on the SearchWP settings screen you can do so with this filter.

Example: To tell SearchWP to prevent attribution for bbPress’ Forum post type, add the following to your active theme’s functions.php:

<?php
add_filter( 'searchwp_enable_attribution_forum', '__return_false' );
view raw gistfile1.php hosted with ❤ by GitHub
Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP