{"id":5327146,"date":"2014-09-24T16:49:44","date_gmt":"2014-09-24T16:49:44","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/conditional-placeholders-2\/"},"modified":"2016-08-22T01:51:54","modified_gmt":"2016-08-22T01:51:54","slug":"conditional-placeholders-2","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/conditional-placeholders-2\/","title":{"rendered":"Conditional Placeholders"},"content":{"rendered":"<p>I am using the conditional placeholder as shown below.<\/p>\n<p>&lt;h6&gt;&lt;i&gt;{has_location}#_LOCATIONNAME, {\/has_location}{has_location}#_LOCATIONTOWN, {\/has_location}{has_location}#_LOCATIONSTATE, {\/has_location} {has_location}#_LOCATIONCOUNTRY{\/has_location}&lt;\/i&gt;&lt;\/h6&gt;<\/p>\n<p>When there is no state it prints out the commas and blank spaces as follows.<\/p>\n<p>Manchester Central, Manchester, , United Kingdom<\/p>\n<p>How can I resolve this issue? Thank you in advance for your help and such a great plugin!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/events-manager\/<\/p>\n","protected":false},"template":"","class_list":["post-5327146","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5327146","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\/5327146\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5327146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}