-
AuthorPosts
-
November 13, 2014 at 12:55 am #350517
Hi,
I’m having problems getting an Events Manager shortcode to work correctly using the Avia layout builder. I’d like to show my event listings in two tabbed sections – a list (no pics) & a grid (w/pics). I’m using the Avia Layout Builder to create the tabbed sections and then I created a page with Avia shortcodes to create the table I need for the list section which outputs the code:
[av_table purpose='tabular' caption='' responsive_styling='avia_responsive_table' custom_class=''] [av_row row_style='avia-heading-row'][av_cell col_style='']Date[/av_cell][av_cell col_style='']Class[/av_cell][av_cell col_style='']Presenter[/av_cell][av_cell col_style='']Price[/av_cell][av_cell col_style='']Bookings[/av_cell][/av_row] [events_list category="185"] [av_row row_style=''][av_cell col_style='']#_EVENTDATES #_EVENTTIMES[/av_cell][av_cell col_style='']<a href="#_EVENTURL">#_EVENTNAME</a> [/av_cell][av_cell col_style='']#_ATT{Presenter} [/av_cell][av_cell col_style='']#_EVENTPRICEMAX[/av_cell][av_cell col_style='']<a href="#_ATT{EventbriteURL}" target="_blank">Book Now</a>[/av_cell][/av_row] [/events_list] [/av_table]
Basically, the events_list shortcode should loop through and create a new table row for each event it finds, but this doesn’t seem to be happening. Is there some limitation in WP that breaks shortcodes within shortcodes? I read something about using do_shortcode but not sure how that would work exactly.
Is this going to be possible? Or am I better off using some kind of HTML solution?
Just a sidenote: I can get the EM shortcodes working to an extent using the Avia Layout Builder with the table element and using [events_list limit=”1″] in each cell so it pulls very specific information. This isn’t a perfect solution though because it doesn’t output the full list of events; only however many cells I fill in (and then offset=”x” to pull different events into the table). I’ve tried using ‘limit’ and ‘offset’ in the above code as well but it doesn’t work at all with the Avia shortcodes.
November 13, 2014 at 6:30 pm #350835Hey danchristopher!
With your current code that would just list all of the events into one table cell. To do what your wanting you would need to edit the events_list shortcode that comes with the events manager plugin, http://wp-events-plugin.com/documentation/shortcodes/, but that would have to be considered custom work.
I would try searching through their support to see if anyone has done this before.
Regards,
ElliottNovember 13, 2014 at 10:52 pm #350971Hi! Thanks for your response.
After reading something clicked and I realised that Events Manager allows you to change the output of the events_list shortcode using HTML. I had been ignoring the obvious solution and instead trying to shortcut my way through it using the Avia builder – I guess that’s what happens when you build a framework just so damn good and you expect it to do everything!
I’ve now setup my events_list shortcode to output the table – which is already nicely styled by the Enfold theme – and so all I had to do was use the one shortcode in the tab element and it’s working flawlessly. Perfect!
Thank you :)
November 14, 2014 at 5:46 pm #351365Hey!
Thanks for posting your solution. Let us know if you have any other questions.
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.