Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display post custom field example
<?php
global $wp_query;
$postid = $wp_query->post->ID;
echo get_post_meta($postid, 'title-2', true);
wp_reset_query();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment