Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Benutzerdefiniertes Feld in WordPress außerhalb des Loops ausgeben
global $wp_query; $postid = $wp_query->post->ID;
if (get_post_meta($postid, 'Zusatztitel', true)) {
echo get_post_meta($postid, 'Zusatztitel', true);
} else {
echo "Ersatztext";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment