{"id":42,"date":"2007-05-08T23:30:46","date_gmt":"2007-05-08T23:30:46","guid":{"rendered":"http:\/\/patchlog.com\/wordpress\/wordpress-optimal-title\/"},"modified":"2007-05-08T23:35:10","modified_gmt":"2007-05-08T23:35:10","slug":"wordpress-optimal-title","status":"publish","type":"post","link":"https:\/\/patchlog.com\/wordpress\/wordpress-optimal-title\/","title":{"rendered":"WordPress optimal title"},"content":{"rendered":"<p>I'm using Aaron Schaefer's <a href=\"http:\/\/elasticdog.com\/2004\/09\/optimal-title\/\" title=\"Optimal title wordpress plugin\" target=\"_blank\">Optimal title wordpress plugin<\/a> to modify the way wordpress displays the title by default. This plugin provides a function similar to wp_title() but your title will not contain \"blog archive\" in front of your post's title and this is good for seo.<\/p>\n<p>You will have to modify your header template and replace the call to wp_title with a call to optimal_header().<br \/>\nIn a previous post I presented a plugin for integrating <a href=\"http:\/\/patchlog.com\/wordpress\/jerome-keywords-google-sitemap\/\" title=\"Google sitemaps with Jerome's Keywords\" target=\"_blank\">Jerome's keywords plugin with google sitemaps<\/a>, this post will show you how to integrate it with the optimal title plugin.<\/p>\n<p><!--more--><br \/>\nI had to modify a the optimal_header function a bit because I use Jeorme's keywords plugin for tagging and I wanted the tag to be included in the title for better search engine indexing. I had to add the next piece of code right before the return from the optimal_title() function ( in optimal_title.php ) , actually before the line \"\/\/ send out the generated optimal title accordingly\" :<\/p>\n<blockquote><p>if(function_exists('is_keyword') &amp;&amp; is_keyword())<br \/>\n$optimal_title=get_the_search_keytag().\" $sep \".$optimal_title;<br \/>\n}<\/p><\/blockquote>\n<p>Now the title of a tag page looks like \"tag_name | PatchLog\"<\/p>\n<p>What do you use for seo on your blog ?  Please me know in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using Aaron Schaefer&#8217;s Optimal title wordpress plugin to modify the way wordpress displays the title by default. This plugin provides a function similar to wp_title() but your title will not contain &#8220;blog archive&#8221; in front of your post&#8217;s title and this is good for seo. You will have to modify your header template and &hellip; <a href=\"https:\/\/patchlog.com\/wordpress\/wordpress-optimal-title\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress optimal title<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12],"tags":[360,31,359],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-patches","tag-seo","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pofPh-G","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/patchlog.com\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}