Single and Archive Pages with Custom Post Type

I have a custom post type // Set other options for Custom Post Type $args = array( ‘label’ => __( ‘document’, ‘ecse’ ), ‘description’ => __( ‘Upload Documents’, ‘ecse’ ), ‘labels’ => $labels, // Features this CPT supports in Post Editor ‘supports’ => array( ‘title’, ‘editor’, ‘custom-fields’, ‘excerpt’ ,’thumbnail’,’page-attributes’,’tags’), // You can associate this CPT…

Details

Notice: Undefined variable: thumbnail

I have a grid setup on my portfolio page and for whatever reason I keep getting these two errors: Notice: Undefined variable: thumbnail in /home/hometo10/public_html/wp-content/themes/swank/archive-portfolio.php on line 22 Notice: Trying to get property of non-object in /home/hometo10/public_html/wp-content/themes/swank/archive-portfolio.php on line 22 Here is my archive-portfolio.php code <?php //* The custom portfolio post type archive template //*…

Details