{"id":4175056,"date":"2013-09-30T09:16:55","date_gmt":"2013-09-30T09:16:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/struggling-with-placeholders\/"},"modified":"2016-08-21T05:37:26","modified_gmt":"2016-08-21T05:37:26","slug":"struggling-with-placeholders","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/struggling-with-placeholders\/","title":{"rendered":"Struggling with placeholders"},"content":{"rendered":"<p>I&#8217;ve used the instructions here:<br \/>\nhttp:\/\/wp-events-plugin.com\/documentation\/using-template-files\/<\/p>\n<p>and have templates working fine.  I&#8217;m now trying to get placeholders to show on event-single.php<\/p>\n<p>After the PHP I have: #_CATEGORYCOLOR<br \/>\nBut this just gets shown as is, with no conversion to the actual category color.  I&#8217;ve tried other placeholders such as #_CATEGORYNAME but they do the same, so I&#8217;m obviously doing something wrong.<\/p>\n<p>The end goal is to get the category color out so that I can change the cell background color on the calendar when there is an event.<br \/>\nI&#8217;ve followed all the suggestions here:<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/plugin-events-manager-choose-a-color-for-a-category?replies=17<br \/>\nBut they dont work. It just prints out &#8216;#_CATEGORYCOLOR&#8217;<\/p>\n<p>Interestingly, if I print_r echo $EM_Event:<br \/>\necho $EM_Event-&gt;categories-&gt;categories[2]-&gt;color;<\/p>\n<p>color is blank.<\/p>\n<p>Does anyone have any thoughts?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/events-manager\/<\/p>\n","protected":false},"template":"","class_list":["post-4175056","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4175056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4175056\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4175056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}