{"id":5520,"date":"2018-01-19T19:31:23","date_gmt":"2018-01-19T19:31:23","guid":{"rendered":"http:\/\/goofy-trucks.flywheelsites.com\/default-title\/"},"modified":"2018-01-19T19:31:29","modified_gmt":"2018-01-19T19:31:29","slug":"default-title","status":"publish","type":"post","link":"https:\/\/phpbuilder.com\/default-title\/","title":{"rendered":"default title"},"content":{"rendered":"<div class=\"phpbuilder-content\">\n<div class=\"phpbuilder-meta\">\n<div class=\"\">By Dan<\/div>\n<div class=\"\">on November 8, 2001<\/div>\n<\/p><\/div>\n<div id=\"overflow-content\">After I learned of the ease with which I could use PHP to incorporate a template into my website I had to figure out how to make the title not be default in all my pages. Sure, there&#8217;s lots of site-building template packages that&#8217;ll do this but when I first learned PHP I didn&#8217;t know that (also I&#8217;m a control-freak and not truly happy unless I&#8217;ve designed the whole thing myself:) <\/p>\n<p>This is actually my first &#8216;snippet&#8217;. Put this in the template (you figure out where it goes;)<\/p>\n<pre>&lt;HTML&gt;\n &lt;HEAD&gt;\n  &lt;TITLE&gt;\n   &lt;? if ($TITLE == '') {print \"DEFAULT TITLE SUITABLE FOR ANY PAGE\";} else {print \"$TITLE\";}?&gt;\n  &lt;\/TITLE&gt;<\/pre>\n<p>.. then on any page that you don&#8217;t want the default title to appear put <\/p>\n<pre>&lt;?$TITLE=\"THE SPECIAL TITLE FOR THIS PAGE ONLY\";\nINCLUDE (\"TEMPLATE\");<\/pre>\n<p>Maybe that&#8217;s pretty obvious, maybe everybody else is already doing that but it seems to me that I invented it and that makes me happy (please don&#8217;t tell me otherwise:)<\/p><\/div>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>After I learned of the ease with which I could use PHP to incorporate a template into my website I had to figure out how to make the title not be<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5520","post","type-post","status-publish","format-standard","hentry","category-tips"],"_links":{"self":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/5520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/comments?post=5520"}],"version-history":[{"count":1,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/5520\/revisions"}],"predecessor-version":[{"id":5658,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/5520\/revisions\/5658"}],"wp:attachment":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/media?parent=5520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/categories?post=5520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/tags?post=5520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}