Support

Home Forums Event Espresso Premium Linking Registration links to Custom Posts

Linking Registration links to Custom Posts

Posted: July 5, 2012 at 8:36 am


sgallup

July 5, 2012 at 8:36 am

Hi. I am using the custom posts feature to customize the presentation of our event pages. These pages also contain the registration form as well. When I use the widget to list upcoming events, the links it provides go to the standard EE event detail page when I would rather have them link to their custom post page. How can I change this? Thanks!


Josh

  • Support Staff

July 5, 2012 at 12:11 pm

I would recommend using a widget that displays a list of posts for a specific custom post type. Here is one: http://wordpress.org/extend/plugins/custom-post-type-list-widget/


sgallup

July 5, 2012 at 4:59 pm

I had managed to get the EE widget to display the event date, city/state, along with the title, yet the plugin you suggested can only display the title. I’ve spent hours trying to find an alternative. Any other suggestions?


Josh

  • Support Staff

July 6, 2012 at 9:59 am

One suggestion: use the calendar widget and set the calendars to link to posts in the calendar settings.

Another suggestion: refactor the upcoming events widget to link to the event posts.


sgallup

July 6, 2012 at 12:01 pm

Yep, Ideally I would love to get the upcoming events widget to link to the event posts if I could figure out how to do it. I’m a novice PHP programmer but I thought paying extra for the Custom Files add-on would help.


Josh

  • Support Staff

July 6, 2012 at 12:36 pm

The custom files add-on gives you a place to override pluggable functions (custom_functions.php). The templates (like widget.php) can be copied over to /wp-content/uploads/espresso/templates and the customizations will not get overwritten on the next update.


sgallup

July 6, 2012 at 1:12 pm

Yes, I understand how they work yet they are not much help when using custom posts. I’m getting frustrated at the time, effort and money I’ve wasted trying to customize a simple link to go to my custom posts. Thanks for your help.


Josh

  • Support Staff

July 6, 2012 at 3:21 pm

Try changing the registration_url variable in widget.php to something like:

$registration_url = get_permalink($event->post_id);


sgallup

July 6, 2012 at 3:57 pm

IT WORKS PERFECT!! THANK YOU JOSH!

The support post ‘Linking Registration links to Custom Posts’ 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.

Do NOT follow this link or you will be banned from the site!
[i]
[i]