• I am able to display the bulleted list of all of my posts’ metadata with the basic

    <?php the_meta(); ?>

    tag in the loop with no problem, but when I try to display a single key’s value with

    <?php $client = get_post_meta($post->ID, ‘client’, $single = false); ?> <p>Client:<?php echo $client; ?></p>

    I get a null return. I am able to be sure I have the correct key name and that that key has a value becuase I can see it right there in the <?php the_meta(); ?> output.

    Would love to resolve this- I wasn’t able to find anything like this by searching the forum or Google.

    Ak!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meta Data displays with ‘the_meta();’ but not with get_post_meta!’ is closed to new replies.