Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

warning: parameter 2 to search_by_title() expected to be a reference, value given inwp-includesclass-wp-hook.php on line 287

#Custom theme (old themes that does not support the new PHP 7.1+ version)
#PHP 7.1 doesn’t like & in front of $query parameters in functions.
#In the Themes -> <your-theme> -> functions.php -> search the code and remove the &
__search_by_title_only( $search, $wp_query ) {
Source by generatepress.com #
 
PREVIOUS NEXT
Tagged: #parameter #expected #line
ADD COMMENT
Topic
Name
1+3 =