• Resolved Jay

    (@fectio1)


    Im trying to display the content if it is available and if not it displays “more info coming soon”

    Is this right? It works, I just want to make sure it is the correct way and most efficient.

    <?php if($content = $post->post_content ) {
      echo "<span class='titles'>Description:";
      echo "</span>";
      echo the_content();
    } else {
     echo "<span class='titles'>More Info Coming Soon</span>";
    } ?>

    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Code verification’ is closed to new replies.