Posted: July 29, 2017 at 1:47 pm
|
I an writing several plugins that integrate EE with SendInBlue. To accomplish this,
But,I am missing one critical piece of data: the URL of the EE page that begins the event registration for that event. This (still under construction) page on my website shows how I am using this information: http://www.connexions.world/a-taste-of-connexions/. The button on the right end of each row says “Remind Me” or “Register Me”. If it says “Register Me”, I want to open the corresponding registration page (JavaScript window.open…) but I don’t know where to get the URL for that page. |
Hi there, Quick question, can I ask why you are not using the EE model system to pull the details you need? https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System Unless I’m missing something, the above SQL query does nothing different than you could do with the models fairly easily. To answer your question, the EVent URL is not stored within the database, but the EE Events are custom post types (with additional data in our own tables as I’m sure your aware from the above) so you can pull the URL of an event the same way you would any standard post. I’d use get_permalink(). Pass that the EE event post (I can’t see what your assigning the results to, but generally |
|
|
You guys did it again! Great support that solved my problem. |
The support post ‘Database schema question – where URL to event?’ 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.