I’m using the coffee mod for the custom field but maybe this works with WordPress itself, too.
This is pulling the Data as wanted with the plugin:
<?php echo c2c_get_custom('Quelle', '| <span class="quelle"><a href="', '" target="_blank" rel="nofollow">Via</a></span>'); ?>
I thought I can do the same with this:
<? get_post_meta(the_ID(), "Quelle", $single = true); ?>
But it actually doesn’t work, I just get the postID. Is it possible to get a single custom field value with WordPress itself?
- The topic ‘Single Value from Custom Field’ is closed to new replies.