{"id":8424064,"date":"2016-11-11T14:49:37","date_gmt":"2016-11-11T14:49:37","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-error-when-using-custom-shortcode-string\/"},"modified":"2016-11-11T14:49:37","modified_gmt":"2016-11-11T14:49:37","slug":"php-error-when-using-custom-shortcode-string","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-error-when-using-custom-shortcode-string\/","title":{"rendered":"PHP error when using Custom Shortcode String"},"content":{"rendered":"<p>I love Global Content Blocks! One of my sites I&#8217;m having a weird problem. It works okay when I call the block&#8217;s number, like [contentblock id=35], but it throws this error when calling the same one via its custom name, like [contentblock id=footertext]:<\/p>\n<p><code>Warning: strlen() expects parameter 1 to be string, array given in \/wp-content\/plugins\/global-content-blocks\/gcb\/gcb.class.php on line 36<\/code><\/p>\n<p>I really don&#8217;t want to go through all of my pages and replace the code with the number &#8212; is there an easy fix for this?<\/p>\n<p>Thanks in advance!<\/p>\n<p>-Todd<\/p>\n","protected":false},"template":"","class_list":["post-8424064","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8424064","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\/8424064\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8424064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}