• Hi All,

    I am quite new in using Event Manager and trying to find my way. Right now I would like to add some custom attributes like mentioned in the documentation (https://wp-events-plugin.com/documentation/event-attributes/).

    In the Events > Settings I enabled the option “Enable event attributes”. I also added some attributes in the entry box below it but then I got stuck. The explanation below that text box says I also must add them in (another) template to get them visible on my event pages. OK, but what template it is referring to?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Go to Events Manager Settings then click on the Formatting tab. Then click on Advanced mode and enable Advanced and Super Advanced mode. Then scroll down and click on Events then you can change the template for the Single Event page to add your attributes to the template and then click on the Save button.

    • This reply was modified 6 months, 3 weeks ago by joneiseman.
    Thread Starter KramBie

    (@krambie)

    Hi Joneiseman,

    Thank you, I going to try that.

    Cheers,
    Krambie

    Thread Starter KramBie

    (@krambie)

    Hi All,

    Yesterday I finally got the time to work on this again. Those custom attributes are working great, I have those new fields I needed in my event creation page now.

    It leads to another question. Where is the modified template stored on disk?

    And second question on custom attributes. What is the use of the Event Attributes entry field in the settings page of EventManager? It appears to be sufficient to add them to the template.

    Adding the custom attributes as you did automatically adds them to the event entry form. However, it doesn’t automatically add them to event display. If you want to add them to the display of single events:

    Go to Events Manager Settings then click on the Formatting tab. Then click on Advanced mode and enable Advanced and Super Advanced mode. Then scroll down and click on Events then you can change the template for the Single Event page to add your attributes (e.g., #_ATT{MYATTR}) to the template and then click on the Save button.

    Thread Starter KramBie

    (@krambie)

    <Then scroll down and click on Events then you can change the template for the Single Event page>
    That is what I did and that is working. I mean visa versa what is the need of having it on the settings page on the first place? It appear to be sufficient to just modify the template.

    You need to enable event attributes and list the attributes in the General tab under General options so that the events appear on the page for creating and editing events. You need to edit the format of the single event page on the formatting tab so that the attributes appear on the single event page.

    Thread Starter KramBie

    (@krambie)

    OK, thanks, I will try that.
    Cheers, KramBie

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding Custom Attributes on event page’ is closed to new replies.