Remove Comments From Certain Post Types

Paulund is full of premium tutorials and support to help with your development

Sign up to get full access to all tutorials.

Get full access for $5/mo

Login to your account


In WordPress the default posts and pages both come with comments enabled, this will allow WordPress to display your comment form under your content. But with custom post types you can choose if this content supports comments or trackbacks. When you create a custom post type you will use the function register_post_type(). One of the arguments parameters is . . . This content is restricted to subscribers