Forked from bhongy/Wordpress: Do if the_content is not empty
Created
September 15, 2023 03:36
-
-
Save Sanabria/414ad6341849229351ad29002194beb2 to your computer and use it in GitHub Desktop.
Revisions
-
bhongy revised this gist
Jul 11, 2021 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,4 @@ <?php if ( get_the_content() ) { ?> // do or output something -
bhongy revised this gist
Sep 30, 2013 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ <?php $thecontent = get_the_content(); if(!empty($thecontent)) { ?> // do or output something <?php } ?> // break php tag for HTML block -
bhongy created this gist
Sep 30, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ <?php $thecontent = get_the_content(); if(!empty($thecontent)) { // do or output something }