Title: Custom fields are not saved when using shortcode
Last modified: April 14, 2026

---

# Custom fields are not saved when using shortcode

 *  Resolved [mglb81](https://wordpress.org/support/users/mglb81/)
 * (@mglb81)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/)
 * When I use a shortcode in my post, it does not save the start date/time, end 
   date/time, Third-party bookings option or Url, …
 * I have a product for each event, and the content of the event is just [product_page
   id=”1″] 
   I tried removing the double quotes, using single quotes, or just id=
   1. The moment the ] comes in, it does not save the custom fields, and I cannot
   save any dates/urls/…

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

 *  Plugin Support [epsupport1](https://wordpress.org/support/users/epsupport1/)
 * (@epsupport1)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/#post-18883202)
 * Thank you for reaching out to us.
 * From the shortcode you shared, [product_page id=”1″] does not appear to be related
   to EventPrime. Because of this, we would request you to share the exact EventPrime
   shortcode you are using, along with the steps you are following, so we can better
   understand the issue.
 * It would be very helpful if you could let us know:
 * 1. The exact shortcode being used
    2. Where you are adding this shortcode 3. 
   The steps after which the start date/time, end date/time, third-party booking
   option, and URL are not being saved
 * Also, if your requirement is to connect products with events, please note that
   we do offer the WooCommerce Integration extension. This extension allows you 
   to add optional and/or mandatory products to your events, with the flexibility
   to define quantities or allow users to choose them.
 * Once you share the requested details, we will be happy to assist you further.
 *  Thread Starter [mglb81](https://wordpress.org/support/users/mglb81/)
 * (@mglb81)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/#post-18883213)
 * I create a new event (Add new Event)
   I fill in the title field and enter the 
   value [product_page id=”1″] in the code block for the post (not visual)I then
   enter a start date, start time, end date, end time. Then mark the type, location
   and organizer.
 * When I clicked Save, it did save type, location and organizer, but the start 
   date, start time, end date and end time were reset to default values (today for
   dates, and empty for hours).
 * It did work however when I saved the exact same, but with the text being [product_page
   id=”1″
 * I tried again today, and now I **can **save the values with the full text (with
   closing bracket) inside.
 * Very strange, but this issue is resolved.
 *  Thread Starter [mglb81](https://wordpress.org/support/users/mglb81/)
 * (@mglb81)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/#post-18885008)
 * I may have been too fast with thinking the issue was solved.
 * My initial idea that it did not save the data correctly was not correct. It does
   save the data correctly, but does not display it afterwards.
 * After testing some more, I was able to pinpoint the issue to id’s that are actually
   product id’s.
 * So if I create a new entry with the content [product_page id=”1″], and the post
   with id 1 is not a product, everything works fine.
 * But if I create a new entry with content [product_page id=”12345″] where 12345
   is an existing post of the product type, it saves the data correctly in the posts_meta
   table, but it fails to show on the page, as it display the start and end date
   on today’s date only.
 * This is a bit annoying, as we always have to think of writing down the dates 
   before we edit the record, and update the values before saving.
 * Thanks for your suggestion on the woocommerce integration. We will have a look
   into this towards the future, but for now we would like to keep the current setup,
   as it keeps the maintenance for our small team manageable.
 *  Plugin Support [epsupport1](https://wordpress.org/support/users/epsupport1/)
 * (@epsupport1)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/#post-18886568)
 * We have forwarded this to our testing team and will update you as soon as possible.
 *  Plugin Support [epsupport1](https://wordpress.org/support/users/epsupport1/)
 * (@epsupport1)
 * [2 weeks, 3 days ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/#post-18904329)
 * Hi [@mglb81](https://wordpress.org/support/users/mglb81/) ,
 * We reviewed this thoroughly on our end and found that the issue is specifically
   related to the [product_page id=”12345″] shortcode and its internal functionality,
   rather than EventPrime.
    Our technical team will further investigate this behavior
   to improve compatibility with the shortcode.
 * For verification, you may add the [product id=”12345″] shortcode within the event
   description field and notice that the data saves correctly.
 * In the meantime, we recommend using the [product id=”12345″] shortcode on the
   event page instead of loading the complete product page using [product_page id
   =””] to display the desired product information correctly.
 * If you have any further questions or concerns, please feel free to contact us–
   we’re here to help!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-fields-are-not-saved-when-using-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/eventprime-event-calendar-management/assets/icon-256x256.
   gif?rev=2961582)
 * [EventPrime – Events Calendar, Bookings and Tickets](https://wordpress.org/plugins/eventprime-event-calendar-management/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eventprime-event-calendar-management/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eventprime-event-calendar-management/)
 * [Active Topics](https://wordpress.org/support/plugin/eventprime-event-calendar-management/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eventprime-event-calendar-management/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eventprime-event-calendar-management/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [epsupport1](https://wordpress.org/support/users/epsupport1/)
 * Last activity: [2 weeks, 3 days ago](https://wordpress.org/support/topic/custom-fields-are-not-saved-when-using-shortcode/#post-18904329)
 * Status: resolved