Disable Custom Posts i.e. /courses /departments etc

Support Forums for LiveMesh Themes & Plugins Forums Invent Theme Support Disable Custom Posts i.e. /courses /departments etc

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26383
    cathalmc
    Member

    Hello,

    Firstly, great theme. Really liking it so far.

    I want to ask for your help with disabling custom post types. I need to be able to use the /courses slug as we will not be using your custom layouts. We are currently using learndash.

    Is is possible to disable [courses, departments, pricing plan, news etc]. Also I would like these to not show in the admin menu.

    Any ideas?

    Thanks.

    C

    #26388
    Veena
    Moderator

    You can use the following snippet in your child theme functions.php file to remove any custom post type defined by the theme –

    
    function delete_post_type(){
        unregister_post_type( 'department' );
    }
    add_action('init','delete_post_type', 13);
    
    #26414
    cathalmc
    Member

    Thanks for responding. But it does not appeared to have fixed the issue. Departments is hidden from the menu, but the slug /departments still brings users to the custom post type page. Any ideas? Thanks.

    #26417
    cathalmc
    Member

    Just flushed/fixed permalinks and its working now. Thanks for your help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Disable Custom Posts i.e. /courses /departments etc’ is closed to new replies.