\n"; } if ( trim($bfa_ata['homepage_meta_keywords'] ) != "" ) { echo "\n"; } } // META DESCRIPTION & KEYWORDS Tag for single post pages and static pages: if ( is_single() OR is_page() ) { $bfa_meta_description = get_post_meta($post->ID, 'bfa_ata_meta_description', true); $bfa_meta_keywords = get_post_meta($post->ID, 'bfa_ata_meta_keywords', true); if ( $bfa_meta_description != '' ) { echo "\n"; } if ( $bfa_meta_keywords != '' ) { echo "\n"; } } // META DESCRIPTION Tag for CATEGORY PAGES, if a category description exists: if ( is_category() AND strip_tags(trim(category_description())) != "" ) { /* the category description gets its own ASCII code filter from WP, but

...

tags will be included by WP, so we remove them here: */ echo "\n"; } /* prevent duplicate content by making archive pages noindex: If it's a date, category or tag page: */ if ( ($bfa_ata['archive_noindex'] == "Yes" AND is_date()) OR ($bfa_ata['cat_noindex'] == "Yes" AND is_category()) OR ($bfa_ata['tag_noindex'] == "Yes" AND is_tag()) ) { echo ''."\n"; } } $bfametatags = ob_get_contents(); ob_end_clean(); echo $bfametatags; return; } ?>