Support

Home Forums Event Espresso Premium Permalinks for events

Permalinks for events

Posted: October 14, 2012 at 10:30 pm


Stuart Buchanan

October 14, 2012 at 10:30 pm

Hi, I’m trying to change the URL permalink for registration page from eee to the event name.
Is that possible?

My current event link is: /events/?ee=3
ideally it would be something like: /events/post-name or /events/posts-name-3


Stuart Buchanan

October 14, 2012 at 10:35 pm

sorry it turns out that the custom post types and event url is working correctly.
it’s only the registeration page.
i’ll switch over the registeration list with event list and point to the post page.
thanks.


Stuart Buchanan

October 14, 2012 at 10:57 pm

hi,
well now i understand that the registeration page and the view event page are different.
ideally they would be the same for me. i need someone to be able to view the event. and optionally register.
so within the event list i need to be able to get the event URL.
i’m unable to do it using get permalink function because the event post ids are set on their own index where they overlap with the posts. so event id 1 is not the same as post id 1.
viewing the event can be done with:
/events/event2
/?espresso_event=event2
but not sure how to get that permalink within my custom event list php file.
please advise.


Dean

October 15, 2012 at 4:56 am

Hi Stuart,

So you are trying to use the posts created by events as places where a user can register or the custom post types?

You will have some difficulty if you are using the standard posts as, as you have discovered you can’t pull over the Event ID from there. However you should be able to do it from the custom post type Events.


Stuart Buchanan

October 15, 2012 at 4:35 pm

within my registeration list that is not pointing to the /events/ is where it lists down the events.
the list of events is currently linking to the registeration page: /event-registration/?ee=1
i would rather the url would be: /events/harbour-party/ which is where the custom post type is.
within the custom post type i can also add the link to register.
so within the event list (currently using a custom template event_list_display.php ) i thought of changing the link from the registeration page to the post page so that the url looks better.
but even with all the event information, i’m not sure how to get what post it’s related to. where is that information saved?


Jonathan Wilson

October 15, 2012 at 4:42 pm

Stuart,

We are working on prettying up the permalinks, but that will be in the 3.2 version update.

See here: https://eventespresso.com/wiki/event-espresso-3-2-development/

I checked the ticket that is being worked for this feature and I believe what you are looking for will be in that update.

  • This reply was modified 11 years, 6 months ago by  Jonathan Wilson. Reason: Added more info


Stuart Buchanan

October 15, 2012 at 6:10 pm

how long do you expect for this version to be released?
am i better to use the post type page or the registeration page to display my events? what would be the advantages / disadvantages?

this is how i pulled the URL. was easy.

get_post_permalink($event->post_id);


Dean

October 24, 2012 at 1:51 am

Hello Stuart,

Sorry for the delay in responding to this. 3.2 is earmarked for early 2013, but as always that date is subject to change. The plugin is being virtually rebuilt so there is a lot of work involved with it.

In my opinion I would say to use the standard registration page/s, and if you require a copy being pushed into your blog roll then you can just create a standard post (the event has an option to do this).

The support post ‘Permalinks for events’ 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.

Event Espresso