ThemeShaper Forums » Thematic


Add meta keywords in post, page

(5 posts)
  • Started 13 years ago by TungZ
  • Latest reply from TungZ
  • This topic is resolved


  1. Thematic is great framework. I can change title format, canonical url, rss, description... but I don't know how to add keywords meta in header section in post, page without plugin.

    Any help greatly appreciated,

    Posted 13 years ago #
  2. Hi TungZ,

    Try adding your keywords after the meta description by filtering thematic_description and adding your meta tag to the end of it.

    function child_meta_keywords($description) {
    	$keywords  = "\t" . '<meta name="keywords" content="Your,Keywords,Reside,Here" />' . "\n\n";
    	$child_meta = $description . $keywords;
    	return $child_meta;
    add_filter ('thematic_create_description','child_meta_keywords');


    Posted 13 years ago #
  3. Hi Gene,

    Thanks for your quick reply, this function is only show keywords you type in "Your,Keywords,Reside,Here". I want to add keyworks for each post, each page. (like "keywords filed" in "Hybrid post setting" or "Hybrid page setting" )

    Thanks -

    Posted 13 years ago #
  4. You could build this function to pull keywords from custom field post meta and accomplish what you want. But for that a plugin would either be an easier route or could demonstrate how to code the custom field handling for your function.

    Posted 13 years ago #
  5. Wow, i dit it with custom field, thanks so much :X

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.