Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Unfortunately, there’s no way to do that without some custom coding. One way to do it would be use a PHP snippet to test whether the attribute has a value or not.

    Please add “CONDITIONAL & FULLY CUSTOMIZABLE FORMATTING” to your Events Manager’s WISH LIST. You are so close to hitting a home run for people who want a smart, clean and comprehensive “inputs & outputs” site dedicated to events. Front end [event_form] is awesome in theory, but doesn’t apply to all my specific needs. I’m looking to create a simple and clean site for users to post tournaments & races (http://www.gamefinder.com), but [event_form] isn’t a one-form-fits-all yet. I.e., either you’re posting a tournament (baseball, golf, softball, etc), or a race (5K, half marathon, etc.), and based one’s choices, they keep branching to different conditional fields. Sure, it get complicated, but that’s real life. Hope you’re working on it! And make sure it’s a Pro feature, because you deserve to get paid for that, and they’ll all come to see the value. Would also recommend to offer ability for people to pay for posting events (because it can be a deterrent at a buck or two, and garners clean user submitted info – I know a few that do it now).

    Keep up the good work. And let me know if I can help you in any way. I’d be happy to write more scenarios for you if that would help, or whatever else you think could help you.

    Thanks for reading man

    Sam

    Thread Starter ninverso

    (@ninverso)

    Would I be on the right track with this and the conditional placeholder tutorial?

    <style>
    .event_speaker:before {
            content:"Speaker: ";
    }
    </style>
    
    {has_attribute}<div class="event_speaker">#_ATT{Speaker:}</div>{/has_attribute}
    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thanks for the help. I didn’t see tutorials before, but yes, I think if I can understand them, they’ll get me to where I was looking to go with EM. I’m not a programmer, so I’m going to have to work my way through your tutorials over the weekend to try and grasp. One more small question though: I’m building with MU, and I figure I’ll start with the mu-plugins folder, but am I creating a single functions.php file within there, or separate files with whatever file names I want containing your code?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter ninverso

    (@ninverso)

    Thank you for the links! Pretty straight forward and got everything to work.

    Question. I added the php snippet to “events-manager/em-functions.php”
    This code will be lost if I update WordPress, Theme, or Events Manager?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    yes, please try to use your theme functions.php or using mu plugins as per the link I shared above.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Custom Attributes’ is closed to new replies.