Issue with #_EVENTPOSTID placeholder
-
I am hoping someone can help me with this. I use a plugin called rtMedia to enable my users to upload photos taken at our events on individual event pages. This is done via a shortcode. Thumbnails of the uploaded images are displayed in a grid format on the event page where the shortcode is used. This is the shortcode I am using in the event single page template:
[rtmedia_gallery context=event context_id=#_EVENTPOSTID media_type=photo media_title=false privacy=0 uploader=after]
Now the problem I am having starting within the last few days is that uploaded images are not displaying properly on the event pages. Users are not able to see images that were previously uploaded by others, but if a user uploads an image or images himself, the page then displays the newly uploaded images as well as the previously uploaded images. But if the user refreshes the page, the images disappear again (but again reappear if the user uploads more images).
I believe the issue has something to do with my use of the #_EVENTPOSTID placeholder for the context_id in the above shortcode. Because the images will appear after the upload process, it seems as if something is off with the timing between when the shortcode runs vs. when the #_EVENTPOSTID is loaded (if that makes sense). Again, this used to work until recently. (I believe there was an update to Events Manager recently.)
I was able to confirm this by replacing the #_EVENTPOSTID placeholder in the above shortcode with a hard coded numeric value for the context_id. I was then able to upload images and view previously uploaded images with no problems. Given this, I don’t think it’s an issue with the rtMedia plugin.
I should also mention that we display events as pages (as opposed to posts) as defined in the event settings. Not sure if that makes a difference.
I am hoping there is a quick fix for this. Otherwise is it possible to download the previous version of Events Manager and see if it fixes the issue?
Thanks.
- The topic ‘Issue with #_EVENTPOSTID placeholder’ is closed to new replies.