Display Wordpress Custom Field Value INSIDE the Loop

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

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.