Home › Forums › Calendar Products › Events Calendar PRO › Venue list page?
- This topic has 21 replies, 6 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
March 26, 2012 at 12:52 am #17138SarahMember
Hi,
I’ve just bought the pro version of Events Calendar but think I may have made a mistake. I was expecting to be able to have a page with a list of Venues in the same way you can have a list of Events, but I cant see the settings for this. Have I just missed something?March 26, 2012 at 12:08 pm #17153HenryMemberIt may not come out-of-the-box but this is very easily done. You just need to know what the guys at tri.be have called the “venue” custom post type. The following code should work if you paste it into one of your templates:
have_posts()) : $event_archive_query->the_post(); ?>
<a href="” title=””>March 26, 2012 at 12:12 pm #17156HenryMemberOK – that code paste didn’t work very well. i can send you the code or perhaps someone will let me know how to paste code on here? i seem to need to escape the opening and closing php tags
March 26, 2012 at 3:47 pm #17168JonahParticipantJust post on pastie.org or pastebin.com or any other preferred pasting service. We’re going to add code formatting to forum comments at some point…
March 26, 2012 at 5:45 pm #17179SarahMemberThank you Henry & Jonah for your replies.
I will be interested in seeing how easy this is to implement on my site.
Jonah, are you aware of any other sites who have customised the plugin in this way, or can you comment on whether this type of feature may be available out of the box in future?
I upgraded to the pro version to get the Venue functionality but would like the option to get a refund if I can’t get this working easily.
Thanks again.March 26, 2012 at 5:59 pm #17185JonahParticipantHi Sarah, it might be available out of the box at some point but it is relatively easy to achieve. Basically you just need to setup a custom query on a page on your site and pull from the ‘tribe_venue’ post type. Here’s a very basic example that you could throw into one of your templates: https://gist.github.com/2211213
March 27, 2012 at 7:12 am #17197OdhranParticipantHi, I’m not the most competent when it comes to coding- what template should I be pasting Jonah’s query into?, and where would I find it.
I am seeking to achieve the same thing as the OP, and also assumed it was going to be out-of-the-box. I’m happy to do it manually, but I would need more guidance.
March 27, 2012 at 7:52 am #17201OdhranParticipantOk, so I’ve managed to answer my previous question. I used Jonah’s code, but what I would prefer to be displayed is not only the name/link of venue, but all details as per the single venue page. I did a quick copy and paste job and got thus far:
But obviously it’s not right. Can anyone help make it right?
here is my template file:
March 27, 2012 at 8:24 am #17204OdhranParticipantAnother update… page looking reasonably well now, with one issue still unresolved: the maps are not showing for the venues, and the one map that is showing does not correspond to that particular venue. How do I rectify this?
Also, is there a way of making the maps show a closer vicinity to the venue than what they do at present?
March 27, 2012 at 8:27 am #17205OdhranParticipantPS. Here is the current php file…
March 27, 2012 at 2:29 pm #17227HenryMember@Sarah
The guys seem to have already provided some code that will do the tick for you. In case you still needed it, my code was:
March 27, 2012 at 2:30 pm #17228HenryMember@Jonah
Great – looking forward to being able to paste directly here. Pastie.org does the job though. Thanks!
March 27, 2012 at 3:49 pm #17247RobMemberSounds like we’re all set here, right folks? Let me know if not.
Henry: yeah, we are definitely working on that 🙂 Just trying to find the plugin that plays best with our system…
March 27, 2012 at 8:02 pm #17255SarahMemberHi, thanks all for the code but I am a total newbie and I’m still not sure how to proceed. Do I have to create a new template or is there one I should be editing? Instructions for Dummies is what I need 🙂
Will this template file be overidden every time I update the plugin?
Will you consider adding this functionality out of the box in a future update? Your competitor, the Events Manager plugin does have this ability and it is not a pro feature.
Thanks again for the responses so far.March 28, 2012 at 2:57 am #17258OdhranParticipantHi guys, my one outstanding issue is the maps…
http://2013fleadh.ie/venues/The maps are not showing with the corresponding venue. It’s probably a slight coding issue but I’d need someone to point it out.
Here is the code:
http://pastebin.com/DmUQL0WL -
AuthorPosts
- The topic ‘Venue list page?’ is closed to new replies.