Use Custom Fields in Wordpress

<?php /* /includes/... .php */ $custom_field = get_post_meta($post->ID, "name_custom_field", $single = true); //get val of custom field for the name echo $custom_field; //print/use the var in the document ?>

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.