• Resolved mariuszrozanski

    (@mariuszrozanski)


    Hi, I put the following code to my catalog page: [product-catalogue id='1' excluded_layouts=’List’] and there are still available List layout. Is there any other option to remove it?

    I am not sure it is connected with that problem, but when I put wordpress in debug mode there few errors like:

    Notice: Undefined variable: Item_Price in /wp-content/plugins/ultimate-product-catalogue/Functions/Shortcodes.php on line 2818
    
    Notice: Undefined variable: Item_Price in /wp-content/plugins/ultimate-product-catalogue/Functions/Shortcodes.php on line 2818
    
    Notice: Undefined variable: Item_Price in /wp-content/plugins/ultimate-product-catalogue/Functions/Shortcodes.php on line 2818
    
    Notice: Undefined variable: Item_Price in /wp-content/plugins/ultimate-product-catalogue/Functions/Shortcodes.php on line 2818
    
    Notice: Undefined variable: Item_Price in /wp-content/plugins/ultimate-product-catalogue/Functions/Shortcodes.php on line 2821

    I am using WordPress 5.1, PHP 7.2

Viewing 1 replies (of 1 total)
  • Hi mariuszrozanski,

    It looks like it might be the quotes around the word List.

    Could you try replacing your shortcode with this code instead:

    [product-catalogue id='1' excluded_layouts='List']

Viewing 1 replies (of 1 total)

The topic ‘Cannot exclude List layout’ is closed to new replies.