• Hi, i am new to wordpress. Can anyone tell me how could i change meta keyword and meta description tag of my wordpess site. What is procedure to change the code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,
    You could give this plugin a try.
    https://www.ads-software.com/extend/plugins/all-in-one-seo-pack/
    allows you to enter your meta keywods.
    good luck.
    mike,

    This is what I use for the keywords – I got it from another post and modified it so it works on home page too.

    The statements also make it so it does does not make xhtml errors if there are no keywords.

    <?php global $post;
    if( is_single() || is_page() || is_home() ) :
    	$tags = get_the_tags($post->ID);
    	if($tags) :
    		foreach($tags as $tag) :
    			$sep = (empty($keywords)) ? '' : ', ';
    			$keywords .= $sep . $tag->name;
    		endforeach;
    ?>
    <meta name="keywords" content="<?php echo $keywords; ?>" />
    <?php
    	endif;
    endif;
    ?>

    I am still trying to make the description be the content of the article (like first 100 words, etc)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Meta keyword and description tag’ is closed to new replies.