Home › Forums › Calendar Products › Events Calendar PRO › Extending Venues
- This topic has 21 replies, 5 voices, and was last updated 11 years, 7 months ago by
Leah.
-
AuthorPosts
-
September 4, 2013 at 7:33 am #64476
Stephen
ParticipantHello,
I am looking to make a directory listing on my site, and I have Events Calendar Pro installed. I was creating a custom post type called Places and realized Venues is essentially the same. Do you have any recommendations on how to create an Extension for Events Calendar Pro that would extend the Venues features. For example, changing the slug from venue to place, adding custom taxonomy to venues, adding more custom meta to a place, and creating a custom archive for places/venues with filters.
ThanksSeptember 4, 2013 at 4:14 pm #64577Julie Kuehl
ParticipantHey Stephen,
The folks in our The Events Calendar PRO forum are going to be better able to answer your question over there. I’m going to transfer this topic to them.
They’ll be more than happy to help!
— Julie
September 6, 2013 at 7:55 am #64883Stephen
ParticipantGreat Thanks Julie, is this in the right forum now?
September 6, 2013 at 5:28 pm #64991Kelly
ParticipantHi, Stephen. This is definitely the right place. Sorry for the delay in response.
It looks like we won’t be able to get you an answer today, but we’ll be back in touch on Monday. Thank you for your patience!
September 10, 2013 at 8:47 am #65296Barry
MemberHi Stephen,
Thanks for your patience.
I’m afraid it’s rather outside the scope of offered support to guide you through this one – to create and maintain a set of customizations like this you’re really going to need solid WP development skills/spend time digging through the Codex (or work with someone who can offer that sort of capability).
Sorry we can’t do more here.
September 12, 2013 at 11:05 am #65648Stephen
ParticipantNo suggestions or anything? I have a solid knowledge of wordpress and development skills, but I was hoping you might have some suggestions that would help me. Like has anyone extended your plugin, has anyone work with customizing venues?
Your email notifications don’t work by the way, it says I’m subscribed to the email updates but I’m not getting them.September 12, 2013 at 11:46 am #65656Barry
MemberThere are quite a few customizations and extensions out there I’m sure – in terms of offering up suggestions, is there any particular part of the puzzle you’re stuck on?
Your email notifications don’t work by the way, it says I’m subscribed to the email updates but I’m not getting them.
Sorry to hear that, perhaps they are being filtered out by a spam or junk filter? If that’s definitely not the case do let us know and we can certainly look into it (so far as I know we haven’t seen a particular surge in people reporting this one though – not that that means there is no problem, of course).
Thanks!
September 12, 2013 at 1:25 pm #65672Stephen
ParticipantHi Barry,
Hmm not getting stuck in the spam filter.One element I’m stuck on now is changing the Venue slug. I would like to rename Venue to Place, throughout my site, I should be able to do that with a translation file, but I can’t change the slug from /venue/ to /place/
ThanksSeptember 12, 2013 at 4:07 pm #65696Barry
MemberHmm not getting stuck in the spam filter.
OK, we’ll definitely keep an eye out for further reports of this, right now though I’m not sure there is much we can do about this one, unfortunately 🙁
One element I’m stuck on now is changing the Venue slug.
You can filter the arguments used during post registration with tribe_events_register_venue_type_args (and indeed you can alter properties like this immediately post registration – the registered_post_type action could be leveraged here as your possible trigger to do this).
September 16, 2013 at 10:51 am #66066Stephen
ParticipantThanks Barry,
Could you possibly provide a basic example of changing one post type variable using the tribe_events_register_venue_type_args filter? I am familiar with using WordPress’ filters and actions however, in this case, the registered “Venue” post type does not appear to be using my modified variables.
September 16, 2013 at 11:32 am #66072Barry
MemberI’m afraid you’d have to dig in and do a little debugging to see what’s happening – as I noted above we can’t help a great deal with customization work of this nature. If it helps we can provide a list of experienced freelancers who might be able to assist?
September 16, 2013 at 11:59 am #66112Stephen
ParticipantActually, what appears to be happening is that the Events Calendar Pro plugin, when activated, is preventing the overwrites added with the tribe_events_register_venue_type_args filter from taking effect. Perhaps the Pro add-on is overwriting the post type arguments with it’s own defaults later in the initialization. I’m not sure, either way it doesn’t look like the tribe_events_register_venue_type_args filter functions as intended with the Pro add-on. Would that fall more under the support / bugfixes scope?
September 16, 2013 at 1:02 pm #66130Barry
MemberHi Stephen,
Events Calendar PRO uses the very same filter – but unless you are trying to remove one of the changes that PRO makes I’m not sure why you’d run into difficulties here.
It’s entirely possible that there is a bug here and if you think that may be the case please do give an example ideally sharing the code you are using, along with a note of what you expect to happen, and we’ll certainly look into it 🙂
(Do note that the forum does not currently do a great job of handling any code you might paste in, so instead please share code using a service like Pastebin or Gist – thanks!)
September 16, 2013 at 1:18 pm #66132Stephen
ParticipantHello Barry.
Thanks for the reply. I’ve continued digging into this and my best guess at this point involves the function on line 1446 events-calendar-pro.php
It looks like this function re-registers the “Venues” custom post type to change the argument for “exclude_from_search”, but I am guessing that it uses the pre-filtered venue arguments and, as such, does not include any changes made by the tribe_events_register_venue_type_args filter.September 16, 2013 at 1:20 pm #66133Stephen
Participantsorry, the Events Calendar Pro function I’m referring to is allow_cpt_search()
-
AuthorPosts
- The topic ‘Extending Venues’ is closed to new replies.
