Forum Replies Created
-
AuthorPosts
-
February 11, 2013 at 8:45 am in reply to: Make Events that end at 2am Disappear from Event List View at 2am? #32423
Barry
MemberWell, there are a few strategies you might use here. The easiest to implement is to add a little code to your custom list.php template (see our tut on template overrides if you are unsure about creating custom templates).
This code could be placed after the opening line of the event loop (in list.php):
while ( have_posts() ) : the_post();
And simply checks to see if the event started before today’s date and, if that is the case, ignores it.
Does that help here?
Barry
MemberI don’t think we’ve got much if any documentation on that – simply because it’s not a process that is specific to our plugin. There are some great docs out there that can provide some insight though:
Barry
MemberHi Bernhard, no problem π
Let me check in with Sam as I’m not sure how his solution is going to be implemented.
Barry
MemberHi Simone, I appreciate you need a fix here but I’m afraid we just don’t have the bandwidth right now to provide you with the answers you need.
We do aim to create a tutorial to help users of Gantry (and one or two other themes) but, right now, there’s not much else we can do to help I’m afraid.
Barry
MemberYou’re right, it’s a problem with our template. Can you look at this thread and use the suggested fix?
If anything is unclear or you need further help just let me know π
Barry
MemberI can put that forward as a feature request for sure.
Right now the capabilities needed for a user to work with event categories are publish_tribe_events and edit_tribe_events – if you want to do something differently here I think you’ll be able to call register_taxonomy() a second time and overwrite the capabilities setting to whatever you want.
You would of course need to do this after the taxonomy is initially registered.
Barry
MemberOK, so there are quite a few factors in there π
But so long as the various options are available to your hook (in the form of URL query parameters) it should all be possible, it’s just a little out of scope for us to work through here.
Barry
MemberYes, using template overrides. In essence, you create an events directory within your theme – in this case you’d place single-venue.php in there.
You can find the original (if you want to use the existing template code as a starting point) in events-calendar-pro/views/single-venue.php.
Does that help?
Barry
MemberHi Simone, I’m sorry to hear that. We have plans to create a tutorial to help people with Gantry (and one or two other theme frameworks) but that isn’t ready yet so I can understand your frustration.
February 11, 2013 at 6:21 am in reply to: tribe_get_start_date is returning creation date of event, not start date #32412Barry
MemberThanks Chris – I’ll mark it as complete and answered. Have a good one π
Barry
MemberCheer Chris π
Barry
MemberHi Samuel,
Unfortunately, I think you might have to go it alone on this one as what you’re asking about is fairly custom.
Iβd love to have a little picture of the venue on top of the meta-information
I’m not sure on how you intend to specify which image should be used here? You might either need to add a featured images capability to the venue post type or else devise a different system first of all.
Iβd love to have the height of the map dynamic and adjusted to the height of the post (from topline to the bottomline with a margin as now to the topline).
I’ve no doubt that’s possible but I’m afraid it’s way beyond the scope of support that we can provide and would likely only play nicely with your theme and nobody else’s.
Itβs just a detail but have you noticed that there are a lot of english menue-items and descriptions in the german version. Not a real problem but it would be nice if the whole page was translated.
It may be that the translation is incomplete.
We do rely on the community for translations, so if you know how .mo and .po files work and are confident with gettext, please feel free to submit a new translation to us at [email protected].
So again, I’m not sure if there’s much we can do to help on this occasion but I’d be happy to hear back from you if I’ve misunderstood anything or if you already have most of the solution and just need a prod in the right direction.
Thanks!
February 9, 2013 at 5:42 am in reply to: tribe_get_start_date is returning creation date of event, not start date #32372Barry
MemberSo you’re mixing and matching stuff in there.
Although your initial query using tribe_get_events() looks sound you are then calling setup_postdata() only to iterate through the main WordPress loop (hence tribe_get_start_date() doesn’t have any event data to work with and is returning the current date instead).
Here is a minimal version of your code with the WP loop functions stripped out.
Barry
Member* In my snippet above, you would need to populate $tribe_ecp first of all:
$tribe_ecp = TribeEvents::instance(); -
AuthorPosts
