Last active
December 3, 2018 01:56
-
-
Save radarin/4bff81067f72e017e5a675a2ce0b5e22 to your computer and use it in GitHub Desktop.
Bei einzelnem Beitrag statt des Auszuges den kompletten Beitrag in der Liste anzeigen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Bei Beitrag mit der ID 123 den kompletten Beitrag anzeigen, | |
// bei allen Anderen nur den Auszug. | |
if( get_the_id() == 123 ) { the_content(); } else { the_excerpt(); } | |
// Beim Beitrag mit der ID 123 den Weiterlesen-Button ausblenden. | |
if( get_the_ID() != 83 ){ /* hier Code für Button */ } | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment