{"id":1871,"date":"2012-07-02T00:57:03","date_gmt":"2012-07-02T04:57:03","guid":{"rendered":"http:\/\/patorjk.com\/blog\/?p=1871"},"modified":"2014-01-25T17:26:51","modified_gmt":"2014-01-25T21:26:51","slug":"wordpress-hacking","status":"publish","type":"post","link":"https:\/\/patorjk.com\/blog\/2012\/07\/02\/wordpress-hacking\/","title":{"rendered":"WordPress Hacking"},"content":{"rendered":"<p>A couple weeks ago I took an afternoon to read up on <a href=\"http:\/\/themeshaper.com\/2009\/06\/22\/wordpress-themes-templates-tutorial\/\">how to create a WordPress theme<\/a>, and was surprised to learn how much there was to it. Re-doing this site&#8217;s theme has been on my TODO list for about 3 years though, and I felt it was important to give the site a fresh coat of paint. <\/p>\n<p>From a user&#8217;s perspective, I&#8217;ve always loved WordPress. It&#8217;s intuitive, has a great interface, and has all of the blogging features I could want. However, under the hood, I&#8217;d heard it was <a href=\"http:\/\/news.ycombinator.com\/item?id=2200391\">a<\/a> <a href=\"http:\/\/www.phpvs.net\/2009\/12\/08\/an-exercise-in-wordpress-integration-or-why-wordpress-sucks\/\">mess<\/a>. After poking around a bit, I didn&#8217;t really find anything that was discouraging, but I did find myself spending way too much time researching how to make minor adjustments. So rather than toil endlessly, I decided to take a different approach and took the popular <a href=\"http:\/\/wordpress.org\/extend\/themes\/twentyten\">Twenty Ten<\/a> theme and made a bunch of modifications to it (most notiably mixing in some elements from the <a href=\"http:\/\/themeid.com\/demo\/responsive\/page-templates\/blog\/\">Responsive<\/a> theme). This was actually pretty painless, and I&#8217;ll probably continue to make more modifications. If you&#8217;re thinking about creating a theme, it&#8217;s worth reading up on how to do it, but using an existing theme as a launching pad will make your life a lot easier. Anyway, I hope the new design is easier on the eyes, please let me know if you have any issues!<\/p>\n<h3>Thoughts on PHP<\/h3>\n<p>WordPress is powered by PHP, and as of late, I&#8217;ve noticed a hand full of articles <a href=\"http:\/\/www.codinghorror.com\/blog\/2012\/06\/the-php-singularity.html\">deriding<\/a> <a href=\"http:\/\/www.marco.org\/2012\/06\/29\/php-addiction\">the<\/a> <a href=\"http:\/\/me.veekun.com\/blog\/2012\/04\/09\/php-a-fractal-of-bad-design\/\">language<\/a>, and another hand full <a href=\"http:\/\/news.ycombinator.com\/item?id=4177516\">vigorously<\/a> <a href=\"http:\/\/nikic.github.com\/2012\/06\/29\/PHP-solves-problems-Oh-and-you-can-program-with-it-too.html\">defending<\/a> <a href=\"http:\/\/blog.ircmaxell.com\/2012\/04\/php-sucks-but-i-like-it.html\">it<\/a>. I don&#8217;t like to consider myself a language specific programmer, but I do a fair amount of PHP development at work, and also find myself reaching for it when I do non-work related projects. <\/p>\n<p>As of late I&#8217;ve been wondering if I should dive deeper into PHP, or instead try to look into getting good at Python or Ruby. The inelegance and quirks of PHP are a big turn off, but the fact that it&#8217;s used for so much (WordPress, Wikimedia, and lots of other popular software), and is so convenient to write and deploy, makes quitting it hard to do. I&#8217;ve sort of been in this weird stalemate about where I want to go. So while it&#8217;s not my favorite language, I don&#8217;t dislike it enough to throw the baby out with the bath water &#8211; for now at least.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple weeks ago I took an afternoon to read up on how to create a WordPress theme, and was surprised to learn how much there was to it. Re-doing this site&#8217;s theme has been on my TODO list for about 3 years though, and I felt it was important to give the site a &hellip; <a href=\"https:\/\/patorjk.com\/blog\/2012\/07\/02\/wordpress-hacking\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress Hacking<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,3],"tags":[],"class_list":["post-1871","post","type-post","status-publish","format-standard","hentry","category-development-thoughts","category-general-news"],"_links":{"self":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts\/1871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/comments?post=1871"}],"version-history":[{"count":33,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts\/1871\/revisions"}],"predecessor-version":[{"id":1904,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts\/1871\/revisions\/1904"}],"wp:attachment":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/media?parent=1871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/categories?post=1871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/tags?post=1871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}