Viewing 1 replies (of 1 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hello,

    You may accomplish this like so

    add_action('advanced_sidebar_menu_post_type','change_post_type'); 
    function change_post_type( $current_post_type ){
        if( is_singular( 'post-type-slug') || is_post_type_archive( 'post-type-slug' ) ){
            $current_post_type = 'post-type-slug';
        }
        return $current_post_type;
    }

    Simply change post-type-slug to whatever post type you are working with.

    Mat

Viewing 1 replies (of 1 total)
  • The topic ‘Use for custom post type AND pages’ is closed to new replies.