Skip to content

Instantly share code, notes, and snippets.

@Perun
Created May 30, 2017 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Perun/ce6caadc2846ae876f309f6a74d876a9 to your computer and use it in GitHub Desktop.
Save Perun/ce6caadc2846ae876f309f6a74d876a9 to your computer and use it in GitHub Desktop.
Dachzeile, Unterzeile, Subheading in WordPress mit Hilfe eines benutzerdefinierten Feldes.
<?php $unterzeile = get_post_meta($post->ID, 'unterzeile', true);
if ($unterzeile) { ?>
<div class="unterzeile">
<?php echo $unterzeile; ?>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment