Custom metada not showing on page (get_post_meta)
-
Hi. I’m creating my own plugin to add custom post types and taxonomies. Since I’m new to OOP, I’ve started from two templates:
- Meta Box Generator
- WordPress Plugin Boilerplate Generator
However, when I use
<?php echo get_post_meta( get_the_ID()); ?>
or
<?php echo get_post_meta( get_the_ID()); ?>
, only the word “Array” is printed. What is possibly wrong?
Thanks.
Jonathas
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom metada not showing on page (get_post_meta)’ is closed to new replies.