Support » Plugin: Custom 404 Error Page » WPML Support

  • hi, I patched your plugin to be compatible ith WPML :

    custom-404-page.php : line 168

    
    ++    if ( function_exists('icl_object_id') ) {
    ++        $id = icl_object_id($this->page_for_404, 'page', false,ICL_LANGUAGE_CODE);
    ++        $post = get_post($id );
    ++    } else {
              $post = get_post($this->page_for_404);
    ++}
    
  • The topic ‘WPML Support’ is closed to new replies.