Meta Description not displaying in Source Code
I have a wordpress question I was hoping someone could answer.
I am trying to get my meta description tag to display on both my main index page source code as well as my category pages source code.
I have no problem getting the description to display in the source code for individual posts. Basically the 1st line is pulled from the body content of each post.
However when I look at my main index page source code and
category source code all I see is
<meta name=”description” content=”” />
No description is being inserted. I am obviously doing something wrong and need to add something somewhere into the backend of wordpress or to a plugin.
I am using the Semiologic theme in WordPress.
If anyone could give me step by step instructions on how to remedy this I would really appreciate it.
I am sure this is affecting my searc engine rankings if I dont have this set up correctly.
The question I’d ask is what’s the relevant part of your header.php file?
I suspect that the absence of a meta description almost certainly is having no effect on your search engine rankings, however.
I posted this about 8 hours ago and am still looking for any suggestions.
And I asked you a question 8 hours ago and I’m still waiting for you to answer. It’s hard to offer suggestions without information. In this case it would be useful to know what the code is in your header.php file that specifies where the information for the description comes from.
Sorry about that I misread your post and didnt understand what you were asking. I am new to WordPress. Here is the code in my header.php file.
Any help would be greatly appreciated.
# DO NOT EDIT THIS FILE
# The Semiologic theme features a custom.php feature. This allows to hook into
# the template without editing its php files. That way, you won’t need to worry
# about losing your changes when you upgrade your site.
# You’ll find detailed sample files in the custom-samples folder
?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html><head><title><?php do_action(‘display_page_title’); ?></title>
<body class=”<?php do_action(‘display_page_class’); ?>”>
<div id=”body” class=”body”>
<div id=”main” class=”main”>
Yikes! I probably can’t be of any help apart from bumping this to the top.
Presumably it’s the
part that generates the meta description, but I don’t know anything about that function. Hopefully someone else here can help you out.
What plugin or addon is actually generating the meta description?
He’s correct about the wp_head bit, however that’s just a standard action hook. Something, somewhere else, is using that to insert the description bits. You need to figure out what plugin is doing that.
- The topic ‘Meta Description not displaying in Source Code’ is closed to new replies.