{"id":853,"date":"2015-02-06T00:51:24","date_gmt":"2015-02-06T00:51:24","guid":{"rendered":"http:\/\/www.richa1.com\/RichardAlbritton\/?p=853"},"modified":"2015-02-06T01:29:41","modified_gmt":"2015-02-06T01:29:41","slug":"pods-issues","status":"publish","type":"post","link":"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/","title":{"rendered":"Pods issues"},"content":{"rendered":"<p>I have used Pods.io for easy handling of custom post types for WordPress. It makes it easy for other users to change how the content is displayed and create new post types by using a fairly well designed GUI. I can edit the page templates from the Pods Admin dashboard and I don&#8217;t get confusing looks when I try and explain the fundamentals of the register_post_type() function.<\/p>\n<p>All in all, Pods has just made it easy for me to customize WordPress and make it easy for a basic user to maintain. However, they have started to get a bit sloppy with documentation for the last few updates. This came as a shock to me when suddenly the educational\u00a0content on my <a href=\"http:\/\/hackebot.com\" target=\"_blank\">Hack-E-Bot<\/a> website was not showing up correctly.<br \/>\n<!--more--><\/p>\n<p>The Pods Admin has a section called Pages and that is were I can create new custom PHP templates for handling the new post types. This is supposed to work like creating a new Page Template.PHP file, and it did, but now it stopped pulling the header.php and ignored the CSS all together even though they were both clearly referenced in the template.\u00a0Something may have auto updated and messed it all up because things were working just perfect until a few days ago.<\/p>\n<p>I sat down to try and fix the issue and things just were not working the way they should and most of the documentation was from 2012, so no help there. I gave up on making it work the old way and rigged it up so that it is at least displaying correctly. It took me about 2 hours to get everything to link correctly, but I got it fixed now.<\/p>\n<p>What really irritates me though is stuff that just stopped working with no explanation or alternatives in the Pods.io documentation. You are supposed to be able to call a single post of a particular post type by using:<\/p>\n<pre class=\"lang:php decode:true \">\/\/ Get the Pods object for a specific item \r\n$mypod = pods( 'mypod', $id_or_slug ); \r\n<\/pre>\n<p>However that dose not work any more. I had to use the following method to find my single post:<\/p>\n<pre class=\"lang:default decode:true \">\/\/ Get the Pods object and run find() \r\n$params = array(    \r\n    'limit' =&gt; 1, \r\n    'where' =&gt; 'post_name =\"'.$thePost.'\"' \r\n    ); \r\n\r\n$mypod = pods( 'mypod', $params );<\/pre>\n<p>It&#8217;s not such a big code change for me, but if I had know that the first method was retired I would not have bothered to troubleshoot it and just switch to the second method.<\/p>\n<p>It is a shame because now I feel that I should start moving\u00a0away from using Pods and find a new plugin or just make my own. Time will be the deciding factor I am afraid, and I just have to little time these days.<\/p>\n<p>Oh well, slap a bandage on it and live to fight another day.<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/\" target=\"_blank\" title=\"Click to print\"><span>Print<\/span><\/a><\/li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/?share=email\" target=\"_blank\" title=\"Click to email this to a friend\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-853\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-853\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>I have used Pods.io for easy handling of custom post types for WordPress. It makes it easy for other users to change how the content is displayed and create new post types by using a fairly well designed GUI. I can edit the page templates from the Pods Admin dashboard and I don&#8217;t get confusing &hellip; <a href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Pods issues<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/\" target=\"_blank\" title=\"Click to print\"><span>Print<\/span><\/a><\/li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/?share=email\" target=\"_blank\" title=\"Click to email this to a friend\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-853\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-853\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/pods-issues\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5AhH6-dL","_links":{"self":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/853"}],"collection":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/comments?post=853"}],"version-history":[{"count":3,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":866,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/853\/revisions\/866"}],"wp:attachment":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/media?parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/categories?post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/tags?post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}