• Resolved ddfoston

    (@fostonda)


    Hi

    I like your plugin but recently have been getting the following warning: Notice: Undefined index: slug in /mysite/wp-content/plugins/our-team-enhanced/inc/class/class.smartcat-team.php on line 243

    The code in this area is:

    $args = array(
                'labels'             => $labels,
                'public'             => true,
                'publicly_queryable' => true,
                'show_ui'            => true,
                'show_in_menu'       => true,
                'query_var'          => true,
                'rewrite'            => array('slug' => $this->options['slug'],'with_front' => false),
                'capability_type'    => 'post',
                'has_archive'        => true,
                'hierarchical'       => false,
                'menu_position'      => null,
                'menu_icon' => SC_TEAM_URL . 'inc/img/icon.png',
                'supports' => array( 'title', 'editor', 'thumbnail' ),
    
            );
            register_post_type( 'team_member', $args );

    This does cause a problem when moving to another page.

    Thanks
    Dave

    https://wordpress.org/plugins/our-team-enhanced/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘For your info: Warning message when debugging site’ is closed to new replies.