Title: ShortCode
Last modified: January 20, 2025

---

# ShortCode

 *  Resolved [GreWeb](https://wordpress.org/support/users/fil6718/)
 * (@fil6718)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/)
 * As there is a shortcode to display my reservations “[my_bookings]”, is there 
   a shortcode to display the “Manage Reservations” page, the bookings_page ?

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

 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18254755)
 * There no such shortcode but you could create one using the following code snippet:
 *     ```wp-block-code
       add_shortcode('my_bookings', function() {    return em_get_my_bookings();});
       ```
   
 *  Thread Starter [GreWeb](https://wordpress.org/support/users/fil6718/)
 * (@fil6718)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18255590)
 * I found this code
 * `function em_get_my_bookings_shortcode(){
   return em_get_my_bookings();}add_shortcode('
   my_bookings', 'em_get_my_bookings_shortcode');
 * in the em-shortcode.php page. I think it’s the same.
 * I search to display Manage bookings page.
 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18256407)
 * Only users with the manage_bookings and/or manage_other_bookings capabilities
   can view this page. To create a shortcode to display this:
 *     ```wp-block-code
       add_shortcode('bookings', function() {    ob_start();    em_bookings_dashboard();    return ob_get_clean();});
       ```
   
 *  Thread Starter [GreWeb](https://wordpress.org/support/users/fil6718/)
 * (@fil6718)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18256534)
 * Thanks to [@joneiseman](https://wordpress.org/support/users/joneiseman/) to help
   me.
 * I add the code in the file function.php, add [bookings] on my page but nothing
   appear.
 * The user have all capabilities.
 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18256619)
 * Change it to this:
 *     ```wp-block-code
       add_shortcode('bookings', 'em_get_bookings_admin');
       ```
   
    -  This reply was modified 1 year, 4 months ago by [joneiseman](https://wordpress.org/support/users/joneiseman/).
 *  Thread Starter [GreWeb](https://wordpress.org/support/users/fil6718/)
 * (@fil6718)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18256730)
 * Works fine, thanks a lot !

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

The topic ‘ShortCode’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [GreWeb](https://wordpress.org/support/users/fil6718/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/shortcode-1007/#post-18256730)
 * Status: resolved