Media searching ignored

WordPress doesn’t search images by their file names. It performs a search based on Title. By default titles are generated automatically from file names, but it can be changed in editor by users.

search form redirects to home

I forgot that in my function.php I had a kill function that was redirecting to home.php my search. I just needed to delete search from the function below /* Kill attachment, search, author, daily archive pages ———————————————— */ add_action(‘template_redirect’, ‘bwp_template_redirect’); function bwp_template_redirect() { global $wp_query, $post; if (is_author() || is_attachment() || is_day() || is_search() || … Read more

Creating a Searchable PDF Archive of Publications

Although this is not the place for plugin recommendations (too much personal bias, I guess), I have used the WP Google Search plugin https://wordpress.org/plugins/wp-google-search/ which integrates with Google Custom Search Engine. All you need is a free Google CSE key; enter that in the plugin’s settings, and that’s it. Seems to work well with the … Read more

How do I add custom fields data to a search index?

Try adding the following code snippet to your functions.php file: /** * Extend WordPress search to include custom fields * * https://adambalee.com */ /** * Join posts and postmeta tables * * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join */ function cf_search_join( $join ) { global $wpdb; if ( is_search() ) { $join .=’ LEFT JOIN ‘.$wpdb->postmeta. ‘ ON ‘. $wpdb->posts … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)