Title: HELP! with shortcode, please!
Last modified: July 25, 2022

---

# HELP! with shortcode, please!

 *  Resolved [tracian](https://wordpress.org/support/users/tracian/)
 * (@tracian)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/help-with-shortcode-please-2/)
 * Hi guys,
    the latest Events Manager update broke my website styling, and the 
   documentation doesn’t seem to address my requirements. My goal is to have a shortcode
   providing the following output:
 *  Starting date and time – Ending time
    Event name (linked to custom URL) Location(
   city name only) [dividing bar, one px high]
 * …for the next four upcoming items.
 * Nothing more, nothing less. Surely no icons, no unwanted spacing, etc.
    The possibility
   of separately styling the individual elements would be great.
 * Can you please suggest the appropriate shortcode for that?
 * Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [tracian](https://wordpress.org/support/users/tracian/)
 * (@tracian)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/help-with-shortcode-please-2/#post-15857391)
 * Solved most items, but some still require some help. In particular:
 * * In case of events happening over midnight, how to display the following:
 *  starting date [no ending date] starting time-ending time
 * * Events can be either physical or online. How to display one line listing the
   physical location or, missing that, “online”?
 *  [a2withkids](https://wordpress.org/support/users/a2withkids/)
 * (@a2withkids)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/help-with-shortcode-please-2/#post-15858121)
 * For your second issue, I would use the conditional placeholder {has_location}#
   _LOCATIONNAME #_LOCATIONADDRESS #_LOCATIONTOWN{/has_location}
    {no_location}online{/
   no_location}
 * Documentation on conditional placeholder: [https://wp-events-plugin.com/documentation/conditional-placeholders/](https://wp-events-plugin.com/documentation/conditional-placeholders/)
 * But, it looks like #_EVENTLOCATION is from when they added support for online
   events. I don’t use this feature as I aggregate events and was already providing
   links to events in a custom attribute and kept doing that for online events, 
   but more details are here: [https://wp-events-plugin.com/documentation/location-types/](https://wp-events-plugin.com/documentation/location-types/)
 * I can’t help with your first question as 99% of my events end before midnight.
   For the few that dont, I just end them at 11:59 and leave a note in the description
   that the event ends later. I hate seeing the event that ended at 1a showing up
   the next morning.
 *  Thread Starter [tracian](https://wordpress.org/support/users/tracian/)
 * (@tracian)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/help-with-shortcode-please-2/#post-15858289)
 * Thanks for the conditional code snippet!
 * Now all that remains to find out is what the shortcode is for just the starting
   date of an event.
    -  This reply was modified 3 years, 10 months ago by [tracian](https://wordpress.org/support/users/tracian/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HELP! with shortcode, please!’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [tracian](https://wordpress.org/support/users/tracian/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/help-with-shortcode-please-2/#post-15858289)
 * Status: resolved