Events Planner Template Tags

Here is an ever expanding list of available template tags for your theme templates.  Since events, locations, and organizations are Custom Post Types, the standard WordPress template tags (i.e. the_title(), get_permalink(), the_content(), and etc.) are available for your use inside the loops. The usage for the template tags below is <?php echo one_of_the_functions_below(); ?> inside your template. You can wrap them in any html element that you would like and use css to style.  We have made some templates that you can use to control your event list, individual event, event location, and organization pages.  Watch a tutorial video on Event Template setup page.  These template tags are usable as of version 1.1.

[toggle_content title="Event Information Template Tags"]

  • get_the_event_dates(): This function fetches a table view of the event dates.
  • get_the_event_times(): This function fetches a table view of the event times.
  • get_the_event_prices(): This function fetches a table view of the event prices.
  • get_the_register_button(): Displays the register button. Please note that the button will not display if Show Register Button is set to No inside the event.

[/toggle_content]

The location and organization template tags below can also be used inside the event-list.php template.

[toggle_content title="Location Template Tags"]

  • get_the_location_name()
  • get_the_location_address()
  • get_the_location_address2()
  • get_the_location_city()
  • get_the_location_state()
  • get_the_location_zip()
  • get_the_location_phone()
  • get_the_location_website()

[/toggle_content]

[toggle_content title="Organization Template Tags"]

  • get_the_organization_name()
  • get_the_organization_address()
  • get_the_organization_address2()
  • get_the_organization_city()
  • get_the_organization_state()
  • get_the_organization_zip()
  • get_the_organization_phone()
  • get_the_organization_website()

[/toggle_content]

More and more will be added with each version of the plugin.  Please let us know what else you would like to do with your event pages.

 

9 Responses to “Events Planner Template Tags”

  1. Chris 01/21/2012 at 6:54 am #

    Something I would like to display alongside my event information is the names of people already registered. Is there a way to do that in it’s current incarnation or will that be a feature in the future? Thanks!

    Chris

    • Abel 01/21/2012 at 9:37 am #

      Hi Chris.

      I will add this in one of the upcoming versions in early February). Please send me your requirements.

      Thanks, Abel

  2. Elizabeth 02/05/2012 at 2:49 pm #

    Hi Abel;

    Had great success getting most of this working on the pro version, thanks for all the work you have put into this plugin.

    Couuple of things – 1. I am having a problem getting the get_the_location_website() to work, it is pulling the organizers website it seems – I have created a work around for now but was not able to get that to work.

    Also, what would the template tag be for the Regis. Starts On & Regis. Ends On

    Thanks
    Liz

    • Abel 02/06/2012 at 9:15 am #

      Hi Elizabeth.

      I am glad the plugin is proving itself 🙂 A lot of awesome features are coming.

      I will check get_the_location_website().

      As far as the registration date template tag, can you please let me know a little bit more about it? Would you like a separate table or would you like to show the registration start and end dates in the same table as the event dates table? Please let me know.

      Thanks, Abel

      • Liz 02/06/2012 at 9:23 am #

        Hi Abel;

        Take a look at https://www.theodorewatson.com/events/event/2-day-proposal-writing-workshop/ I put the registration end dates in manually on each event page, but would prefer to be pulling that from the database, so if they change it in the events post type it will automatically update the event post. I was looking for the tag for the registration end date so I could add it to the single-epl_event.php template to make it dynamic.

        Warm Regards Liz

  3. Gary 02/18/2012 at 1:05 pm #

    I think I found the answer to the get_the_location_website() problem; in location-fileds.php the array option is defined as epl_location_url, but in template_tags.php, line 118, the function calls epl_location_website.

    • Abel 02/18/2012 at 1:08 pm #

      Hi Gary.

      Yep, that’s the one. That has been fixed as of v1.1.7.

      Thanks, Abel

  4. Martin 09/21/2012 at 12:47 am #

    Hi there.
    Finally I’ve found THE perfect event plugin.
    Please tell me how to sort and display the events by category?
    I need and overview of all events in all categories and an overview of all events in category “A” (for ex.)

    Thanks for the fast reply!

    regards

    Martin

    • Martin 09/21/2012 at 2:17 am #

      Sorry I’ve found it in the support center…

      Anyways – AWESOME PLUGIN!

      I’m going to recommend it to other people.

Leave a Reply