Event Subpages Not Adhering to Theme Template

WordPress Event Management, Calendars & Registration Forums General Question Event Subpages Not Adhering to Theme Template

This topic contains 2 replies, has 2 voices, and was last updated by  JB Woodruff 11 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8623

    I tried going through this tutorial (http://wp-event-organiser.com/blog/tutorial/creating-your-own-events-page/), but it ended only in a headache.

    What I’m trying to achieve is to get the low-level, autogenerated pages to look and behave like the events list and single event pages I have created here:
    http://fuelcincinnati.org/givebackcincinnati/event-registration/
    http://fuelcincinnati.org/givebackcincinnati/events/event/give-back-cincinnati-holiday-party/

    The problem is when a user would click a Venue, Category or Tag. This takes them to a page that does not completely adhere to the Theme I am using. It functionally works; however, it does not look good.

    Ultimately, I’d like to create my own template, but I failed in integrating Event Organiser into the theme I am using (Bee).

    Any help in clarifying how to achieve this would be awesome.

    Regards,

    JB

    JB Woodruff
    #8626

    HI JB,

    So there are four archive-type templates (in fact: they’re all just variations on the theme – to all intents and purposes they can be identical, except you might want a map at the top of the venue page, or category description at top of the category page).

    The recommended approach is to start with your theme’s archive.php template and makes copies of it with the names:

    • archive-event.php
      • taxonomy-event-category.php
      • taxonomy-event-venue.php
      • taxonomy-event-tag.php

    The pages will now (obviously) fit into your theme – but they won’t display event details. Those templates may not display actually display anything at all, but instead include sub-templates which do: it really depends on the theme.

    From there you can just add in the event-specific bits (and/or remove bits you don’t want). For instance:

    • echo eo_get_the_start( get_option('date_format') ); prints the start date
      • echo eo_get_event_meta_list(); prints a list of details (venue, category, tags) of an event
      • echo eo_get_venue_map( eo_get_venue() ) prints a map of the event’s venue

    That’s really as much as I can say without seeing the theme, so if you’re still unsure feel free to get in touch viaemail with the zip of your theme and I’ll be happy to take a look.

    Stephen Harris
    #8629

    Thank you Stephen. I have emailed you with an update and the zipped file.

    JB Woodruff
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.