Forum Replies Created
-
AuthorPosts
-
Norine Leibel
ParticipantWorks like a charm! Thanks Barry.
Norine Leibel
ParticipantThanks, Rob. I know you guys are super busy. Much obliged.
Norine Leibel
ParticipantHi Barry. Correct, I think.
For context: I have events distributed across multiple cities and towns and sometimes the actual venue info isn’t available or the town “is” the venue” (eg: the town’s small enough, that if you find the town you’ll literally find the event). Because of the wide variance in information that’s supplied, quite often if there is specific venue info I will include it in the body of the event, rather than in the venue name itself, so that there’s consistency. Sometimes the venue is also “listed” elsewhere in the site, so I will instead link to that regular post within the body of the event posting.
So, nutshell, venue name not needed, nor is the comma that follows it in the output. The rest: City, province, country, telephone, website, is fine to keep.
I hope that answers your question?
Norine Leibel
ParticipantThanks, Jonah.
Was really pleased to accidentally discover that the tags were registered and working with the new release, so once the URLs are fixed, it will really be welcomed and improve many things I’ve been working on. Thanks again.
July 25, 2013 at 7:38 am in reply to: ‘View as’ drop down covers regular navigation drop down menus #57072Norine Leibel
ParticipantOh excellent, that works. I thought it would be a simple piece of code like that but didn’t know where to start.
Thanks!!!July 25, 2013 at 7:12 am in reply to: ‘View as’ drop down covers regular navigation drop down menus #57068Norine Leibel
ParticipantOkedoke, thanks.
July 24, 2013 at 4:50 pm in reply to: ‘View as’ drop down covers regular navigation drop down menus #56996Norine Leibel
ParticipantSadly, no change.
Reverted to base twenty twelve theme and deactivated everything except TEC and TEC Pro.July 24, 2013 at 3:44 pm in reply to: ‘View as’ drop down covers regular navigation drop down menus #56978Norine Leibel
ParticipantThis reply is private.
Norine Leibel
ParticipantWorks like a charm. Thanks.
July 16, 2013 at 3:14 pm in reply to: Bug? Unable to Link to Existing Content with EventsCal activated #55559Norine Leibel
ParticipantOkedoke. Thanks, Leah. Will sit tight and work around it till then.
Norine Leibel
ParticipantThanks, Barry, this will require some study on my part. Ideally it should be the same/similar code/concept as what it produces for the event category.
Norine Leibel
ParticipantJonah, a followup to my previous post. It appears that the body classes in the event categories are a product of the way Thematic deals with body classes, as when I created a child theme of twentytwelve, the classes were written as you suggest they should be “events-category-CATEGORYNAME”. So I will need to sort that part out.
However, with regards to the individual events, which don’t seem to get any a body class regardless of category, is there a way to get the body classes in there? The better question is, can their permalink be in their respective category? For example:
/whats-happening-in-lake-dief/event-name/
/whats-happening-in-south-side/different-event-name/
That would be very helpful as it would match the rest of the site, rather than all the events being thrown into one place under /event/
It would have the side benefit of having the slug which could be in theory get the body class working.Thanks.
Norine Leibel
ParticipantThanks, Jonah. I have investigated further and here is what I learned:
If the event category name is more than one word (for example – event category is “What’s Happening in Lake Dief”), the body class gets written as follows: tribe_events_cat-what’s happening in lake dief
Note the absence of hyphens in the class name. I thought at first it was because of the apostrophe, so I created an event category “What is Happening in Lake Dief”. Same problem, body class became tribe_events_cat-what is happening in lake dief … again without the hyphens.I tried again with just a one-word category name “dief” and then it worked fine. Body class was tribe_events_cat-dief as expected.
This does not occur elsewhere in Thematic with multi-word categories, so it seems a result of the Events Calendar. Unfortunately it is big problem, as single-word event categories are not an option. Is there a solution?
Separate but related, I’d like the individual event to have the same header image as its event category, however the body class in the individual event does not include any event category information. Not sure how to address this. Help?
Thanks
Norine Leibel
ParticipantI have found a partial solution which leads to another problem. I added the code from the FAQs, so total event tag related code is as follows:
// Registers core WordPress category and taxonomy taxonomies on the “Events” post type registered by the plugin “The Events Calendar”
add_action( ‘init’, ‘ac_add_calendar_taxonomy’, 20 );
function ac_add_calendar_taxonomy() {
register_taxonomy_for_object_type(‘category’, ‘tribe_events’);
register_taxonomy_for_object_type(‘post_tag’, ‘tribe_events’);
}
// TO HAVE THE TAGS SHOW UP IN THE ARCHIVES.
function include_in_tags( $query ) {
if ( $query->is_tag ) {
$query->set( ‘post_type’, array( ‘post’, ‘tribe_events’ ));
}
return $query;
}
add_filter( ‘pre_get_posts’, ‘include_in_tags’ );But the problem now is the whole event does not appear. No date, no venue, location, etc, just the event name (linked) and the description that was entered. I’d like to have the whole thing show up, just like it does when it appears in the event category.
Thanks for any help!
Norine Leibel
ParticipantThanks, Jonah, that worked.
-
AuthorPosts
