• I just added Woo to a site and notice that ‘Product’ is not an option for ‘Skip content types.’ Does that functionality still exist?

Viewing 1 replies (of 1 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    It looks like Woo does not enable an archive for its products (I assume it must use a custom loop on its own page instead), so it’s overlooked by this plugin for the settings page. I can update the code to show it, but it’s a change which will need some additional work, as Products should not be listed for the archive image settings (since there is not an archive). Enabling this could also be a breaking change for existing users, so I need to think through it before I commit.

    In the meantime, you can enable the featured image functionality for WooCommerce with this code:

    
    add_filter( 'displayfeaturedimagegenesis_get_post_types', 'displayfeaturedimagegenesis_get_post_types' );
    /**
     * Add WooCommerce Products to the list of featured image post types.
     *
     * @param array $options
     * @return array
     */
    function displayfeaturedimagegenesis_get_post_types( $options ) {
    	$options['product'] = 'Products';
    
    	return $options;
    }
    

    You can add that to your theme’s functions.php file, or a custom plugin. Please practice safe coding and have a backup. HTH

Viewing 1 replies (of 1 total)
  • The topic ‘Products not an available content type’ is closed to new replies.