Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Oct 20, 2025 1:35 am
Is there a function to fix this in the settings?
1 Reply
Oct 22, 2025 9:02 am
Hi,
Please use the hook code below;
add_filter( 'wpforo_search_sql', function( $sql, $args ){
if( wpfval($args, 'type') === 'titles-only' ){
$sql = str_replace( ' WHERE ', ' WHERE p.`is_first_post` = 1 AND ', $sql );
}
return $sql;
}, 10 ,2 );
Helpful article: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/