Support

Home Forums Event Espresso Premium EE3 dropdown not displaying any recurring events.

EE3 dropdown not displaying any recurring events.

Posted: May 16, 2016 at 7:25 pm


trentsl

May 16, 2016 at 7:25 pm

EE3 Drop-down menu for recurring events not displaying events. Custom Template File Version 1.1.p , Custom Files Add-on was copy into the folders as per instruction, Recurring Events Manager 1.1.8.p., Event Espresso Version 3.1.37.4.P . The format is there but none of my recurring events show. I have setup multiple recurring events (daily events) at 9:45am, 11:00 am, etc the only difference is the time. Event runs daily from now until end of October. Please assist. Here is a link that might help: http://bit.ly/1SLTZBS
Here is a link.

Josh
Support Staff
April 4, 2016 at 12:54 pm
Hi there,
Did you or a developer on your team happen to wrap the event names and dates with html style comments?
https://www.evernote.com/shard/s4/sh/c65c9091-9684-491d-937c-019a8d6a739b/c1377d37e7c62deb9cc2a971e7bf8a9b
You’ll need to remove the html style comments code for those to appear, the code should be as follows:
” class=”a_event_title” id=”a_event_title-<?php echo $event_id?>” href=”<?php echo $registration_url; ?>”><?php echo stripslashes_deep($event_name)?>

I tried the code above by commenting out a row. As shown below in the file in the directory: wp-content/uploads/espresso/templates/css_dropdown_display.php


//This builds the CSS dropdown
/*
* use the following shortcodes in a page or post:
* [EVENT_CSS_DROPDOWN]
* [EVENT_CSS_DROPDOWN limit=1]
* [EVENT_CSS_DROPDOWN show_expired=true]
* [EVENT_CSS_DROPDOWN show_deleted=true]
* [EVENT_CSS_DROPDOWN show_secondary=true]
* [EVENT_CSS_DROPDOWN show_recurrence=true]
* [EVENT_CSS_DROPDOWN category_identifier=your_category_identifier]
*
* Example:
* [EVENT_CSS_DROPDOWN limit=5 show_recurrence=true category_identifier=your_category_identifier]
*
*/
	
?>
   //<a>" class="a_event_title" title="<?php echo stripslashes_deep($event_name)?>" href="<?php echo $registration_url; ?>"><!--?php echo stripslashes_deep($event_name)?--> - <!--?php echo $start_date; ?--></a>
   <a>" class="a_event_title" id="a_event_title-<?php echo $event_id?>" href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event_name)?></a>
  • This topic was modified 8 years ago by  Tony. Reason: Code formatting


Tony

  • Support Staff

May 17, 2016 at 3:46 am

Hi there,

There’s a couple issue worth noting.

[ESPRESSO_CSS_DROPDOWN] is not an EE shortcode that I am aware of, did you have a developer create a custom template for your events?

Within this page – http://bit.ly/1SLTZBS

The shortcode is wrapped in ‘pre’ tags which make the output a little strange. If you edit the page and switch to ‘Text’ mode on the editor, you will likely find <pre>[ESPRESSO_CSS_DROPDOWN]</pre> shown within there. Remove those pre tags and update.

The code you have posted is different from the code Josh provided here:

https://eventespresso.com/topic/ee3-drop-down-menu-for-recurring-events-not-displaying-events/#post-198900

This:

//<a>" class="a_event_title" title="<?php echo stripslashes_deep($event_name)?>" href="<?php echo $registration_url; ?>"><!--?php echo stripslashes_deep($event_name)?--> - <!--?php echo $start_date; ?--></a>
   <a>" class="a_event_title" id="a_event_title-<?php echo $event_id?>" href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event_name)?></a>

Is actually 2 different types of links, mixed together and the // at beginning is a PHP comment that’s not wrapped in PHP so is output to your browser.

One outputs {Event name} – {start date}

The other just {Event Name}

{Event name} – {start date}
<a class="a_event_title" title="<?php echo stripslashes_deep($event_name)?>" href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event_name)?> - <?php echo $start_date; ?></a>

{Event name}
<a class="a_event_title" id="a_event_title-<?php echo $event_id?>" href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event_name)?></a>

So which one of those would you like to output, just event name?

Also is that the full content of that file? If not can you add the full file to something like http://pastebin.com/ and post the URL here for us to view it please.

It looks like a custom template that needs to be updated properly, but we will know more once we can see the full file.


trentsl

May 19, 2016 at 4:12 pm

Hello. I need to display the Event Name and have the person select the Event Date.
“>” arrows indicate a selection from the drop-down menu.
Event Name: 9:00 AM Event > May 19 > May 20 > May 21 > May 30 > May 31 > June 1

Event Name: 10:30 AM Event > May 19 > May 20 > May 21 > May 30 > May 31 > June 1

file and location: /public_html/wp-content/uploads/espresso/templates/css_dropdown_display.php
link to code: http://chopapp.com/#5euzy31

file and location: /public_html/wp-content/uploads/espresso/templates/css_dropdown.php
link to code: http://chopapp.com/#wmretbme


Tony

  • Support Staff

May 20, 2016 at 3:45 am

It sounds like you would be better using the EE3 Recurring Events Dropdown template:

https://eventespresso.com/wiki/recurring-events-dropdown-template-add-on/

That lists the recurring events and then groups the dates together into a dropdown.

You need the above add-on and the Custom Template Add-on active. Then use:

[EVENT_CUSTOM_VIEW template_name=recurring-dropdown]

The support post ‘EE3 dropdown not displaying any recurring events.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso