ThemeShaper Forums » Thematic


Page Meta Descriptions

(6 posts)
  • Started 10 years ago by stever
  • Latest reply from joperron
  • This topic is not resolved
  1. stever

    SEO bods say there should be desriptions for both pages and posts. I can see the excerpt option in posts to create the meta description in Thematic. Is there an equivalent for Pages? For a paged based CMS type site I would end up with no descriptions for any of the pages. Google will pick out an abridged description from the page content, what about other engines?

    Trying to keep the basic SEO functions within the child theme and out of plugins;

    /* --- Auto generate page meta description --- */
    function gen_meta_desc() {
    global $post;
    if (!is_page()) {
    $meta = strip_tags($post->post_content);
    $meta = str_replace(array("\n", "\r", "\t"), ' ', $meta);
    $meta = substr($meta, 0, 255);
    echo "<meta name='description' content='$meta' />";
    add_action('wp_head', 'gen_meta_desc');

    This strips out the first 255 charactors of the page content and puts it into the meta description for the pages, but;

    1: Description ends up below all the other meta stuff and not under the title, can the order be changed to bring them together?
    2: As Google rules the search engine world and auto generates a description for you is this a waste of time, the SEO bod in me wants to do it because I am interested in covering the bases of the other search engines, but not damaging my chances with Google.

    Always used headspace before moving to themtic, want to keep the SEO within Thematic and the child theme, is this a good approach?

    Posted 10 years ago #
  2. While Thematic is optimized for pretty good SEO out of the box, there are several really great plugins that offer all the bells and whistles and then some! ;-)

    I'm not really in agreement with auto anything when it comes to SEO. Certainly auto meta descriptions based on the first sentence or two of an article is questionable, unless you write your article's first two sentences with that in mind but then you might as well write a real excerpt or meta desc - right? ;-)

    I like to write my own excerpts anyway, and my own meta descriptions, the two are always quite different for me.

    All in One SEO is updated often, I used it for years. Headspace as you say is great. Recently though I have been playing with Yoast's WordPress SEO and I really like it so far. Joost is taking a quite different approach to writing content that is SEO. Check it out!

    Also, if you would like excerpts for your PAGE pages, there is a plugin for that too! ;-)

    Posted 10 years ago #
  3. stever

    I don't really like auto generated text, the above was a botch to get the first section of any page into the description, I would like to craft the meta descriptions for pages myself.

    Without a plugin - within Thematic, do you think it is possible to craft a meta description for each page? Should have stated more clearly above, I'm talking about static pages only and not posts for the blogging side of WordPress.

    Posted 10 years ago #
  4. I guess if you would want to write custom meta tags for each page you could write a function similar to what you have there, using a bunch of elseif's for each page. But my brain hurts just thinking about it.

    I would suggest you use a plugin and put this in your functions.php so that you don't have double description meta tags.... no?

    function remove_description($display) {
    $display = FALSE;
    return $display;
    add_filter('thematic_show_description', 'remove_description');

    Posted 10 years ago #
  5. stever

    joperron - Thought as much. Far too scary, would have to mod the function for any new pages, looking for an easy way to do it generically without a plugin. It's a Shame, really happy with the way Thematic and WP deal with posts, I want to use mainly pages with a tiny side blog, so SEO for pages is important.

    Maybe I'll look at plugins again - Thanks

    Posted 10 years ago #
  6. I've been using this one lately, it's very good:

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.