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,
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,
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');
-Gene
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 -
TungZ
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.
Wow, i dit it with custom field, thanks so much :X
This topic has been closed to new replies.