Currently I'm having some difficulties with below snippet.
As it currently works it shows the_excerpt_rss on a single post and single page. AND it shows the option on is_home().
But what if a page (instead of the 'blog') is the frontpage? If possible I'd like to include the option as well.
I've tried several versions of including is_front_page() but without any luck thus far.
The snippet I'm currently using:
<?php if (is_single() OR is_page()): if (have_posts()): while (have_posts()): the_post(); ?>
<meta name="description" content="<?php the_excerpt_rss(); ?>">
<?php endwhile; endif; elseif (is_home()): ?>
<meta name="description" content="<?php $options = get_option('schema_theme_options'); echo $options['metadescription']; ?>">
<?php endif; ?>