Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Benutzerdefiniertes Feld in WordPress außerhalb des Loops ausgeben
<?php
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";
}
wp_reset_query();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.