Support

Home Forums Event Espresso Premium Link to post of blog

Link to post of blog

Posted: September 29, 2012 at 8:23 am


Joel Rey

September 29, 2012 at 8:23 am

In [ESPRESSO_LISTS] the link under the event name goes to registration. I want it to go to Post description if it exists.

I tried to look in [EVENT_LIST] but this drive to modify the template event_list_display.php and I do not know what is the name of the variable refering to the post url ….

In fact, as [ESPRESSO_EVENTS] is giving the link to register in the description of the event, why not put in standard the link to the post under the name of the event ?


Dean

October 1, 2012 at 1:58 am

Hi Joel,

Generally our customers want the events to link to the registration pages rather than the blog posts. The blog post were really designed to be in addition to the events list/s in that they could be added to a Blog, News feed etc etc which you cannot do that easily with the Events.

As a work around or at least to get you started in the right direction you could try this code in the event_list_display.php, it basically gets the post ID if there is one and makes a link to the post

<?php
$dr_get_post_id = $event->post_id; 
$dr_event_name = $event->event_name;
$dr_permalink = get_permalink( $dr_get_post_id );
if (!$dr_get_post_id == NULL ) {
echo '<a href="' . $dr_permalink . '" rel="nofollow">' . $dr_event_name . '</a>';
}
?>


C. Sanchez-Lozano

October 6, 2012 at 2:43 pm

Awesome, exactly what I was looking for, thanks!

The support post ‘Link to post of blog’ 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