Display Wordpress Custom Field Value INSIDE the Loop

1
2
<?php $post_id = get_the_ID();
echo get_post_meta($post_id, '[custom-field-name]', TRUE); ?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.