Available since: 1.0.10
SearchWP allows you to configure search engines to attribute result weight to a post’s parent. This is exceptionally useful when integrating Media into search results and telling SearchWP to attribute any weight generated by Media to be attributed to the post to which it was uploaded. It also a big part of what makes the bbPress Extension so great; you can have Reply weight be applied directly to it’s parent Topic.
Example: To tell SearchWP to allow parent attribution for bbPress’ Topic and Reply post types, add the following to your active theme’s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|add_filter( 'searchwp_enable_parent_attribution_topic', '__return_true' );|
|add_filter( 'searchwp_enable_parent_attribution_reply', '__return_true' );|