acf field booster
-
Hi! I’am using acf field “post_detail” in posts. I have added:
// Custom fields weight add_filter( 'relevanssi_match', 'rlv_customfield_boost' ); function rlv_customfield_boost( $match ) { if ( $match->customfield > 0 ) { $match->weight *= 10; } return $match; }
And it works ok, when ACF value is without spaces etc.
But when the custom field value is for example: Detail 1+
then the search is loosing booster.
How to treat such a phrase as a whole word?
I see that in url is: ?s=detail+1%2B
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘acf field booster’ is closed to new replies.