Title: Help removing from posts
Last modified: September 13, 2021

---

# Help removing from posts

 *  [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/)
 * (@coldrealms65)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/help-removing-from-posts/)
 * In the settings for the plugin the section ” Do not show cart on pages” only 
   seems to function when I specify page ID #’s
 * I have tried post, posts, and the root slug of where the posts go and nothing
   works.
 * I am using the Storefront theme.
 * Any help would be appreciated

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

 *  Plugin Author [xootix](https://wordpress.org/support/users/xootix/)
 * (@xootix)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/help-removing-from-posts/#post-14874090)
 * Hello,
 * Please add this snippet to your functions.php & then try.
    If you have a custom
   post type, add it in the settings.
 *     ```
       add_filter( 'xoo_wsc_is_sidecart_page', function( $isPage, $pages ){
                   if( in_array( get_post_type() , $pages ) ){
                               $isPage = false;
                   }
                   xoo_wsc()->isSideCartPage = $isPage;
                   return $isPage;
       }, 99, 2 );
       ```
   
    -  This reply was modified 4 years, 9 months ago by [xootix](https://wordpress.org/support/users/xootix/).
 *  Thread Starter [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/)
 * (@coldrealms65)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/help-removing-from-posts/#post-14875764)
 * That would be helpful if I was using custom post types, but I am not.
 * I verified with “echo get_post_type( $post_id );” and the result was “post”
 * As I said, when I add “post” to the list of items on the do not show it still
   shows. I have added a few pages by page ID and those work but even adding a post
   by post ID does not work.
    -  This reply was modified 4 years, 9 months ago by [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/).
      Reason: spelling

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

The topic ‘Help removing from posts’ is closed to new replies.

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/help-removing-from-posts/#post-14875764)
 * Status: not resolved