{"id":59210,"date":"2015-03-04T14:45:38","date_gmt":"2015-03-04T22:45:38","guid":{"rendered":"http:\/\/www.transterrestrial.com\/?p=59210"},"modified":"2015-03-04T16:38:06","modified_gmt":"2015-03-05T00:38:06","slug":"wordpress-problems","status":"publish","type":"post","link":"https:\/\/www.transterrestrial.com\/wordpress\/2015\/03\/04\/wordpress-problems\/","title":{"rendered":"WordPress Problems"},"content":{"rendered":"<p>So I&#8217;m slowly beating the site into submission, but running into a few issues. First, I&#8217;m using a child theme of TwentyFourteen, in order to avoid making changes to the main templates. The way that works is that I add changes to the child style sheet, which then supercede the parent. But there are some things that can&#8217;t be fixed with the style sheet. For instance, in order to move things around in the post, I have to actually change the PHP code in the templates, in the parent. Another problem I&#8217;m having is that, in theory, a new function file in the child will override a function of the same name in WordPress. I want to display the time along with the date on the post, which is generated by a function called &#8220;twentyfourteen_posted_on&#8221; (the original can be found <a href=\"http:\/\/apigen.juzna.cz\/doc\/WordPress\/WordPress\/source-function-twentyfourteen_posted_on.html#101-121\" target=\"_blank\">here<\/a>). It retrieves the date, but not the time. In order to get it to do so, I&#8217;d have to modify it. But when I copy that into my child theme directory, and make changes, nothing happens. Anyone have any idea what the problem is, or how to troubleshoot?<\/p>\n<p>[Update a while later]<\/p>\n<p>OK, I think I figured out the problem. Apparently you can only override functions that are in the function.php file, in the main template directory. This is a tag, buried in the &#8220;inc&#8221; directory. So I have to edit it in there. Which means that I&#8217;ll lose the changes if I have to update the template. But it&#8217;s not a huge deal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;m slowly beating the site into submission, but running into a few issues. First, I&#8217;m using a child theme of TwentyFourteen, in order to avoid making changes to the main templates. The way that works is that I add changes to the child style sheet, which then supercede the parent. But there are some &hellip; <a href=\"https:\/\/www.transterrestrial.com\/wordpress\/2015\/03\/04\/wordpress-problems\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress Problems<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,27,3],"tags":[],"class_list":["post-59210","post","type-post","status-publish","format-standard","hentry","category-administrative","category-mathematics","category-technology-and-society"],"_links":{"self":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/59210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/comments?post=59210"}],"version-history":[{"count":5,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/59210\/revisions"}],"predecessor-version":[{"id":59220,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/posts\/59210\/revisions\/59220"}],"wp:attachment":[{"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/media?parent=59210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/categories?post=59210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.transterrestrial.com\/wordpress\/wp-json\/wp\/v2\/tags?post=59210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}