{"id":6589911,"date":"2015-09-27T20:18:49","date_gmt":"2015-09-27T20:18:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-showing-metabo-on-custom-post-type\/"},"modified":"2016-08-30T18:28:25","modified_gmt":"2016-08-30T18:28:25","slug":"error-showing-metabo-on-custom-post-type","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-showing-metabo-on-custom-post-type\/","title":{"rendered":"Error showing metabox on custom post type"},"content":{"rendered":"<p>I have a custom post type named &#8220;facturas&#8221;.<\/p>\n<p>single-facturas.php -&gt;<\/p>\n<pre><code>&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;\n&lt;?php\n$text = get_post_meta( get_the_ID(), &#039;ff_direc&#039;, true );\necho esc_html($text);\n?&gt; Hello\n&lt;?php endwhile; endif;?&gt;<\/code><\/pre>\n<p>And wordpress show this error:<\/p>\n<pre><code>Notice: Array to string conversion in wp-includes\\formatting.php on line 959\nArray Hello<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/cmb2\/<\/p>\n","protected":false},"template":"","class_list":["post-6589911","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6589911","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\/6589911\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6589911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}