Bots using internal wordpress search

I suggest using a security plugin which will do everything for you. Like iThemes Security Bans troublesome user agents, bots and other hosts https://wordpress.org/plugins/better-wp-security/

Return All Tags from Search Result in Separate List

Try this one: Just add the function in your theme functions file and then in your (search) template, add echo get_query_terms_list(); to display the terms list. But do take note, this is intended only for the current search results, i.e. on the same page. function get_query_terms_list( $taxonomy = ‘post_tag’, $sep = ‘, ‘ ) { … Read more

search: get minimum number of post for each post type

My first guess will be to run multiple custom queries on your search.php template in order to change post_type and posts_per_page It could look like that <?php $s = get_search_query(); $args_array = [ {‘s’ =>$s,’post_type’=>’products’,’posts_per_page’=>5}, {‘s’ =>$s,’post_type’=>’posts’,’posts_per_page’=>3}, {‘s’ =>$s,’post_type’=>’pages’,’posts_per_page’=>5}, ], foreach( $args_array as $args ) { $the_query = new WP_Query( $args ); while ( $the_query->have_posts() … Read more

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