Title: Plugin interfering with Woocommerce breadcrumbs
Last modified: June 29, 2018

---

# Plugin interfering with Woocommerce breadcrumbs

 *  Resolved [hansford77](https://wordpress.org/support/users/hansford77/)
 * (@hansford77)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-interfering-with-woocommerce-breadcrumbs/)
 * When this plugin is activated, Woocommerce breadcrumbs are replaced by the word“
   viewed_cookie_policy”. I have deactivated all other plugins and changed themes,
   it is definitely this plugin. I have tracked down the problem to the changing
   of the global $post variable somewhere in your plugin to one of the posts of 
   type cookielawinfo. Can you look into this please?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [hansford77](https://wordpress.org/support/users/hansford77/)
 * (@hansford77)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-interfering-with-woocommerce-breadcrumbs/#post-10447783)
 * I’ve now tracked it down to the function get_non_necessary_cookie_ids(), here:
 *     ```
       $cookies->the_post(); 
       global $post;
       ```
   
 * I’ve fixed it for the moment like this, but there is probably a more elegant 
   way. I’m only a php dabbler!
 *     ```
       global $post;
       $temp_post=$post;
       while($cookies->have_posts()):            
            $cookies->the_post(); 			
            $cookie_slugs[] = get_post_meta( $post->ID, "_cli_cookie_slugid", true);            
       endwhile;
       $post=$temp_post;
       ```
   
 *  [Mark](https://wordpress.org/support/users/markwt/)
 * (@markwt)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-interfering-with-woocommerce-breadcrumbs/#post-10468459)
 * Hi [@hansford77](https://wordpress.org/support/users/hansford77/),
 * The issue has been fixed in the latest version of the plugin. Please check and
   let us know if there are any further issues.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin interfering with Woocommerce breadcrumbs’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mark](https://wordpress.org/support/users/markwt/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-interfering-with-woocommerce-breadcrumbs/#post-10468459)
 * Status: resolved