how to do wordpress tags to keywords

Discussion in 'WordPress' started by cheeta.admin, Dec 8, 2009.

  1. #1
    Hi there im using wordpress Version 2.8.6
    and plugin seo All in One SEO Pack Version 1.6.8.1

    is there any way that all my tags auto use on keywords ? i dont want to enter every time coz if i dont enter keywords on seo pack plugin for single post it will only use categary name as key words

    please guide me thank you in advance.
    green would be added.
     
    cheeta.admin, Dec 8, 2009 IP
  2. AKSIN

    AKSIN Peon

    Messages:
    159
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No, you will have to post manually.
     
    AKSIN, Dec 8, 2009 IP
  3. cheeta.admin

    cheeta.admin Well-Known Member

    Messages:
    881
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #3
    i dont think there must be any way that our tags auto used for keywords as well, im searching on it if i found any way then will share, waiting for some more response as well.
     
    cheeta.admin, Dec 8, 2009 IP
  4. Wp-Mod.Com

    Wp-Mod.Com Peon

    Messages:
    381
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    paste this in your theme function.php

    
    function csv_tags() {
    	$posttags = get_the_tags();
    	foreach((array)$posttags as $tag) {
    		$csv_tags .= $tag->name . ',';
    	}
    	echo '<meta name="keywords" content="'.$csv_tags.'" />';
    }
    
    Code (markup):
    add this in your header.php before <?php wp_head(); ?>

    <?php csv_tags(); ?>
    Code (markup):
    this will give your posts a meta keyword attribute using your tags as keywords

    and for pages add this plugin i hope this solves the problem

    add a reputation if you like my posts
     
    Wp-Mod.Com, Dec 9, 2009 IP
    cheeta.admin likes this.