Error showing metabox on custom post type
-
I have a custom post type named “facturas”.
single-facturas.php ->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php $text = get_post_meta( get_the_ID(), 'ff_direc', true ); echo esc_html($text); ?> Hello <?php endwhile; endif;?>
And wordpress show this error:
Notice: Array to string conversion in wp-includes\formatting.php on line 959 Array Hello
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error showing metabox on custom post type’ is closed to new replies.