How to insert keyword into the meta tag for WordPress site?

Discussion in 'WordPress' started by terence2.0, Oct 25, 2013.

  1. #1
    Hello all,

    I am developing a website using Wordpress, thus can someone guide me on how and where to insert the keywords for SEO purposes.

    Many thanks in advance.

    Terence
     
    terence2.0, Oct 25, 2013 IP
  2. addlinkurl

    addlinkurl Well-Known Member

    Messages:
    2,409
    Likes Received:
    129
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #2
    you can use SEO plugins like all in one seo or add this into header.php between head tags and customize it:

    <title>
    
    <?php if ( is_home() ) { ?><? bloginfo('name'); ?><?php } ?>
    
    <?php if ( is_search() ) { ?><? the_search_query(''); ?><?php } ?>
    
    <?php if ( is_author() ) { ?><? author_nicename(''); ?><?php } ?>
    
    <?php if ( is_single() ) { ?><?php wp_title(''); ?><?php } ?>
    
    <?php if ( is_page() ) { ?><?php wp_title(''); ?><?php } ?>
    
    <?php if ( is_category() ) { ?><?php single_cat_title(); ?><?php } ?>
    
    <?php if ( is_month() ) { ?><?php the_time('F'); ?><?php } ?>
    
    <?php if ( is_tag() ) { ?><?single_tag_title(''); ?><?php } ?>
    
    </title>
    
    <meta name="description" content="
    
    <?php if ( is_home() ) { ?><?php bloginfo('description'); ?><?php } ?>
    
    <?php if ( is_search() ) { ?><? the_search_query(''); ?><?php } ?>
    
    <?php if ( is_author() ) { ?><? author_nicename(''); ?><?php } ?>
    
    <?php if ( is_single() ) { ?><?php wp_title(''); ?><?php } ?>
    
    <?php if ( is_page() ) { ?><?php wp_title(''); ?><?php } ?>
    
    <?php if ( is_category() ) { ?><?php echo trim(strip_tags(category_description())); ?><?php } ?>
    
    <?php if ( is_month() ) { ?><?php the_time('F'); ?><?php } ?>
    
    <?php if ( is_tag() ) { ?><?single_tag_title(''); ?><?php } ?>
    "
    />
    PHP:
     
    addlinkurl, Oct 25, 2013 IP
  3. sandeepdude

    sandeepdude Well-Known Member

    Messages:
    1,741
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #3
    I use AIO SEO for this purpose. Clean and simple.
    You can also try Yoast. Both are equally awesome
     
    sandeepdude, Oct 25, 2013 IP
  4. terence2.0

    terence2.0 Greenhorn

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Hi Addlinkurl

    Thanks for the reply! That's really useful.

     
    terence2.0, Oct 25, 2013 IP
  5. shiv saroya

    shiv saroya Active Member

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #5
    try SEO by yoast http://yoast.com/wordpress/seo/
     
    shiv saroya, Oct 26, 2013 IP