// Supporting meta ?> // If not 404 page if( !is_404() ) { ?> // If excerpt exists if( $post->post_excerpt ){ ?> // If excerpt doesn"t exist } else { ?> } ?> $url = get_permalink(); $title = get_the_title(); // If excerpt exists if( $post->post_excerpt ){ $desc = get_the_excerpt(); } else { $desc = get_bloginfo("description"); }// If thumbnail exists if( has_post_thumbnail() ){ $thumbs = wp_get_attachment_url(get_post_thumbnail_id()); } else { $thumbs = get_template_directory_uri() . '/screenshot.png'; } ?> } ?>