Hello,
Thanks for reporting the issue. So far I don’t see anything suspicious. Would you be able to contact me by email roman@pronskiy.com in order to find the root of the problem faster?
We’re having the same problem with the “Hide from search engines” selection for WooCommerce product pages.
Go to the “Edit product” page for any product, check the box to “Hide from search engines,” click the Update button, and the check box automatically becomes unchecked again.
Hello @ramgllc,
Search Exclude plugin does hide from search engines out of the box. So there is no such checkbox as “Hide from search engines”.
If you are talking about “Exclude from Search Results” checkbox, then I would need more information in order to find the root of the problem.
Please contact me by email for faster help: roman@pronskiy.com
Sorry, wrong plugin. Our apologies.
We are actually having this problem with Noindex Pages, which does include a checkbox “Hide from search engines,” and in searching for a resolution, we confused that plugin with yours, that does include a checkbox “Exclude from Search Results.”
By the way, we weren’t aware that Search Exclude hides pages from search engines. We thought that it only excludes pages from local searches.
-
This reply was modified 9 years ago by
ramgllc.
@ramgllc, actually you are right and by default Search Exclude only excludes from local searches. But with small customization, it can exclude from search engines as well. You can find more info in the following thread: https://wordpress.org/support/topic/add-noindex-nofollow-to-header/
Basically, need to add small code snippet in the functions.php file:
function add_meta_for_search_excluded()
{
global $post;
if (false !== array_search($post->ID, get_option('sep_exclude', array()))) {
echo '<meta name="robots" content="noindex, nofollow" />', "\n";
}
}
add_action('wp_head', 'add_meta_for_search_excluded');
We’re currently using the other plugin, Noindex Pages, to keep selected pages from being indexed by search engines. That plugin produces a checkbox labelled “Hide from search engines” in the Publish section in the upper right-hand corner in the Edit Page page for all pages, including WooCommerce product pages.
We want to prevent various products in our WooCommerce marketing window from being indexed. While NoIndex Pages appears to work for keeping regular web pages from being indexed, we’re having a problem using it with WooCommerce product pages. As I described in a previous post, when we go to “Edit product” to edit a product page and check the box to “Hide from search engines,” the box becomes unchecked again upon clicking the Update button for the page.
We’ll add the snippet you suggested to the functions php file.
I wonder if that will produce a conflict with the Noindex Pages plugin?
Thanks for your help. Sorry not to have responded sooner, but I previously failed to check the “Notify me” box.
-
This reply was modified 9 years ago by
ramgllc.