Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter twiggledtech

    (@twiggledtech)

    if we put a web address in its place it works for that web address however if we change it back to Title then it does not work.

    Thread Starter twiggledtech

    (@twiggledtech)

    Can anyone help with this installed a test site on another server and same thing happens. Event links are not linking to the event page just linking to the page the event list is on.

    Thanks

    Plugin Author Bastien Ho

    (@bastho)

    Hi,

    Event links are not linking to the event page just linking to the page the event list is on

    this behavior looks like the feature Do not link posts with empty content which can be disabled from the settings page.

    actually, here is what is done:

    if ($ep_settings['emptylink'] == 0 && empty($post->post_content)) {
        $post->permalink = '#' . $id . $this->list_id;
    }

    Plugin Author Bastien Ho

    (@bastho)

    It seems that in some case, post’s permalink are not retreived.

    I’ve added a double check to use guid if the permalink is empty.

    released in version 4.3.3

    Hello.
    I have a comment related to this piece of code….

    I displaying a list of posts (events) and everyting worked fine until I moved my apparent wordpress root – so the GUID is not refering to the location of the page anymore.
    After the move, clicking on the title generates a 404 error.

    what is your impression? is this a correct solution?

                foreach ($events as $event) {
                    $class_item = ($event->time_end >= current_time('timestamp')) ? 'event_future' : 'event_past';
                    if ($ep_settings['emptylink'] == 0 && empty($event->post_content)) {
                        $event->permalink = '#' . $id . $this->list_id;
                    }
     					// was trying to display a list of posts (events) and everyting works
    					// Then I moved my apparent wordpress root - so the GUID is not refering to the location of the page anymore
    					// to be honest, I don't understand why $ob is used here - maybe it is the cause of the issue - I solved in another way
    					elseif(empty($ob->permalink)){
    
    					// some tests for the new code.... $list.=sprintf('<p>'.$event->guid.'<br />'.get_permalink($event->post_parent).'<br />'.get_permalink($event->ID).'</p>');
    					
    
    					// this is the original code.... the problem is that the GUID is put in the HTML in the <a>. Results in 404 error
                        $event->permalink=$event->guid;
    					
    					// this is the code I replace it with - it works.... Any thoughts? is this correct?
    					$event->permalink=get_permalink($event->ID);
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘%event_link% not working’ is closed to new replies.