Skip to main content

Easy way to achieve this.

register_post_type( 'mypost',
    array(
        ...
        'has_archive' => false,
        ...
    )
);

After updating this reset the permalinks 'Settings -> Permalink'

Easy way to achieve this.

register_post_type( 'mypost',
    array(
        ...
        'has_archive' => false,
        ...
    )
);

Easy way to achieve this.

register_post_type( 'mypost',
    array(
        ...
        'has_archive' => false,
        ...
    )
);

After updating this reset the permalinks 'Settings -> Permalink'

Source Link

Easy way to achieve this.

register_post_type( 'mypost',
    array(
        ...
        'has_archive' => false,
        ...
    )
);