LikeUnix
Настройка FreeBSD Linux
WordPress tag description
оптимизируем тэг description
<?php if (is_single()) { if (have_posts()) : while (have_posts()) : the_post(); $strDescr=get_the_excerpt(); $strDescr = substr( $strDescr, 0, 400 ); $strKeys=""; $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $strKeys=$strKeys.$tag->name.',';} } endwhile; endif; } else { $strDescr="Для главной страници"; $strKeys="Для главной страници"; } ?> <meta name="description" content="<?php echo $strDescr; ?>"> <meta name="keywords" content="<?php echo $strKeys; ?>">