• Resolved cowgirly

    (@cowgirly)


    Hi all– I’m hoping someone can explain simply how to get Custom Attributes to work. I need to add a few new fields to my “event submission” form. This is what I’ve done– and it’s not working– what am I doing wrong?

    In event-editor.php, I added this code:

    <table>
    <tr>
    <td>#_ATT{Teacher Name:}</td>
    </tr>
    </table>

    In Events > Settings > General Options >
    Enable event attributes? YES
    Enable event custom fields? YES
    Event Attributes: #_ATT{Teacher Name:}

    https://www.ads-software.com/plugins/events-manager/

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

    Which part isn’t working, the admin or the displaying on the site?

    Thread Starter cowgirly

    (@cowgirly)

    On the site, the actual code appears on the page:

    Enable event attributes? YES
    Enable event custom fields? YES
    Event Attributes: #_ATT{Teacher Name:}

    Also, those new fields do not appear in the “submit an event” form.

    Thanks!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    have you tried to change your attribute name to #_ATT{Teacher_Name} instead of #_ATT{Teacher Name:} ? also, do you have a sample link for us see and your event attribute should appear below event details on events submission form

    Thread Starter cowgirly

    (@cowgirly)

    Ok, those fields on the Event Submission Form are now working, thanks angelo_nwl!

    But the information from those fields is not appearing on the single Event page.

    Any ideas how to the info from those new fields to appear?

    Thank you!

    Thread Starter cowgirly

    (@cowgirly)

    Just saw this text underneath Events > General > General Options > Event Attributes:

    “You can also add event attributes here, one per line in this format #_ATT{key}. They will not appear on event pages unless you insert them into another template below, but you may want to store extra information about an event for other uses.”

    But I’m not understanding how and where I insert them?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    first, you need to add events attribute in Events > Settings > General > General Options > Event Attributes

    eg. #_ATT{teacher_name}

    second, you can use #_ATT{teacher_name} in your formatting at Events > Settings > Formatting > Events so it will appear in your events list or single events page

    Thread Starter cowgirly

    (@cowgirly)

    Perfect, exactly the info I needed, thank you!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need help with Custom Attributes’ is closed to new replies.