<meta name="description" content="<?php if ( is_single() ) { single_post_title('', true); } else { bloginfo('name'); echo " - "; bloginfo('description'); } ?>" />
<?php if ( is_home() ) { ?> <meta name="description" content="Freelance Web Design and Development Service"/> <?php } ?> <?php if ( is_single() OR is_page() ) { ?> <meta name="description" content="<?php { setup_postdata($post); echo strip_tags( strip_shortcodes((get_the_excerpt()))); } ?>"/> <?php } ?>
<?php if( is_singular() ) { ?><meta name="description" content="<?php echo get_bloginfo('name'); ?> <?php echo wp_reset_postdata(); echo strip_tags( strip_shortcodes((get_the_excerpt()))); ?>" /><?php } ?>