Skip to content

Instantly share code, notes, and snippets.

@Perun
Created May 30, 2017 12:34
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/b99988154e114d2f08f7eea9fdf9d488 to your computer and use it in GitHub Desktop.
Save Perun/b99988154e114d2f08f7eea9fdf9d488 to your computer and use it in GitHub Desktop.
Dachzeile, Unterzeile, Subheading in WordPress. Es wird der Inhalt der Auszug-Box (Excerpt) ausgegeben. Einzubinden z.B. in die single.php
<?php
// Code für die Überschrift und die Metadaten
if(!empty($post->post_excerpt)) {
echo '<div class="auszug">';
the_excerpt();
echo '</div>';
}
// Code für die Ausgabe des Haupttextes
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment