Trying to use conditional code to display some custom information

Home Forums Calendar Products Events Calendar PRO Trying to use conditional code to display some custom information

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #28464
    Adam Ruback
    Participant

    We are trying to use conditional code to display some custom information. This isn’t needed for regular additional field (which obviously don’t display if they’re not filled out). But we have some extra code (a UL that displays some tooltip information) that we want to show up ONLY if one of those additional fields is full.
    My idea is that it needs to say “If post has information in tribe_custom_field (‘name’), then display the following”.
    Is there a syntax for this?
    Thanks!

    #28467
    Barry
    Member

    Something like this?

    http://pastebin.com/q3Mu3q90

    #28470
    Adam Ruback
    Participant

    I think so, yes- so would that go in functions.php? and then what would I use in my template file?

    #28472
    Barry
    Member

    No that would go somewhere inside your template (within the loop). Your tooltip markup would go inside the if block.

    #28474
    Adam Ruback
    Participant

    Works great. Thank you!

    #28475
    Barry
    Member

    Excellent 🙂

    #978214
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Trying to use conditional code to display some custom information’ is closed to new replies.