• How to display name post-meta, not ID ?

    <ul class="post-meta" data-tmpl="customize-posts-meta-field">
    <?php foreach ( $data['meta'] as $id => $meta ): ?>
    <?php echo self::get_meta_fields( array_merge( $meta, compact( 'id' ) ) ); // xss ok ?>
    <?php endforeach; ?>
    </ul>

    I try change from
    <?php echo self::get_meta_fields( array_merge( $meta, compact( 'id' ) ) ); ?>

    to

    <?php echo self::get_meta_fields( array_merge( $meta, compact( 'name' ) ) ); ?>

    but it doesn’t work

    https://www.ads-software.com/plugins/post-customizer/

  • The topic ‘Display name of post meta’ is closed to new replies.