• Resolved jonathas.duarte

    (@jonathasduarte)


    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)
  • Thread Starter jonathas.duarte

    (@jonathasduarte)

    Oh…
    I’ve tried to use the_meta(); and figured it out.

    It turns out that my final key is called dados_adicionais_chapeu (dados_adicionais is my metabox’ name). The prefix was added by the Metabox generator I’ve used.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom metada not showing on page (get_post_meta)’ is closed to new replies.