• Resolved Anointed

    (@anointed)


    I decided to use the notes section as an expanded bio area so that the bio does not take up so much space.

    I added the following to my template

    <div id="accordion">
    <div class="sermon_content"><?php echo $entry->getNotes() ?></div>
    <a class="trigger" rel="Close" href="#">Click here for more info:</a>
    </div>

    What I can’t figure out is how to wrap that code in a conditional statement.. i.e. only show if there is actually information in the getNotes field for the given user…
    (only want the Click here for more info divs above to show up if there is info in the getNotes)

    Can you lend a hand?

    http://wordpress.org/extend/plugins/connections/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try:

    <?php if ( $entry->getNotes() ) { ?>
    <div id="accordion">
    <div class="sermon_content"><?php echo $entry->getNotes() ?></div>
    <a class="trigger" rel="Close" href="#">Click here for more info:</a>
    </div>
    <?php } ?>

    Thread Starter Anointed

    (@anointed)

    Thanks Michael
    Worked perfectly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Connections] only display field if it’s filled in?’ is closed to new replies.