Jump to content

AgentVIP

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Everything posted by AgentVIP

  1. The second code looks good. As you figured out, the '} else {' statement should be together. However, you still don't really need all of those PHP tags. You could look into ternary operators to make it even simpler, but for general basic purposes, this was is fine <div class="entry-content tec-event-entry"> <?php /** Get the "cft_tinymce_1" custom field */ $block_1 = get_custom_field('cft_tinymce_1'); if($block_1) { echo $block_1; } else { the_content(); } ?> </div> <!-- End tec-event-entry -->
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.