We don’t want customers to be able to comment on the inventory. How do we turn that off?

If your theme doesn’t offer the option to disable comments on a “custom post type” basis then you can add something like this to your theme’s functions.php file and it’ll disable them on your single vehicle pages:

add_action( ‘init’, ‘remove_custom_post_comment’ );
function remove_custom_post_comment() {
remove_post_type_support( ‘cars_for_sale’, ‘comments’ );

Comment on this FAQ

Your email address will not be published. Required fields are marked *