Does htaccess password keep search engines out?

Not really a WP question, but I do this with dev sites. I don’t think I can give you an absolute answer as to search engines’ behavior, but speaking from experience, adding authentication like htpasswd retroactively would cause an eventual departure from search results. Adding auth proactively has produced effective results for me. The search … Read more

How to block search engines indexing certain AJAX actions

If an ajax call is indexed it compromises the whole purpose of the application. The cause here is that you are making your call using GET instead of POST as suggested: https://codex.wordpress.org/AJAX_in_Plugins The right way should be along something like : <?php add_action( ‘admin_footer’, ‘my_SHOP_javascript’ ); // Write our JS below here function my_SHOP_javascript() { … Read more

Will ‘private’ status prevent Woocommerce products to be indexed by search engines?

If you are using the default WordPress method of marking a post/page private, NO. This only prevents that post/page content from being viewable. Google (and other search bots) will not find private pages. Only logged in blog Editors and Administrators can see Private pages. So, while WordPress will not add the meta to block bots, … Read more

Group search results by category

Add in the search parameter to your query: $search_filters = array( ‘post_type’ => ‘page’, // Doorzoekt alle post types ‘s’ => $keyword // show only posts that meet the current search query ); And above that you should just be able to grab the keyword right from your querystring like so: $keyword = $_GET[‘s’]; There’s … Read more