/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Syntax for custom field call // <?php get_post_meta($post_id, '$key', $single); ?> // Example, First set Custom Field in "Create Post" or use "Custom Field Template"-Plugin. In this case I create the field "CustomPower". Then call the field via get_post_meta. Easy :) // <p class="whatever"><?php echo get_post_meta($post->ID, 'customPower', true); ?></p>