Putting Meta Keywords & Description in your wordpress blog

Discussion in 'HTML & Website Design' started by cscott5288, May 30, 2008.

  1. #1
    Ok, so i want to put my meta keywords and description in my wordpress blog, do i just insert it into the header.php file?

    If so, where here (i know it's near the top but not sure exactly, doen't want to screw anything up in php):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    	
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<!--[if IE 7]>
    		<style type="text/css" media="screen">
    			#sidebar h2{
    				text-indent:-15px;
    			}
    		</style>
    	<![endif]-->
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php wp_get_archives('type=monthly&format=link'); ?>
    
    	<?php wp_head(); ?>
    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-4006937-3";
    urchinTracker();
    </script>
    
    
    
    
    
    </head>
    <body>
    
    <!-- wrapper start -->
    <div id="wrapper">
    	
    	
    	<!-- header start -->
    	<div id="header">
    		
    
    
    <a href="http://www.wdzine.com" title="wdzine">
    <img src="images/hbg2.jpg" alt="wdzine home" /> </a>
    
    
    
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    	</div>
    	<!-- header end -->
    	
    	<!-- container start -->
    	<div class="clearfix" id="container">
    PHP:
    Also, what if i wan't the meta keywords and descriptions to be diffrent on each page?
     
    cscott5288, May 30, 2008 IP
  2. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
  3. cscott5288

    cscott5288 Active Member

    Messages:
    912
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    thanks! this plug in is great.

    It seems there is a plug in for just about everything!
     
    cscott5288, May 30, 2008 IP