ID ); $exclude_types = array( '' ); $exclude_types = apply_filters( 'eat_exclude_types', $exclude_types ); // do nothing if the post has already a featured image set if ( $already_has_thumb ) { return; } // do the job if the post is not from an excluded type if ( ! in_array( $post_type, $exclude_types ) ) { // get first attached image $img = rv_auto_featured_image_catch_that_image( $post ); $attachment_id = attachment_url_to_postid( $img ); if ( $attachment_id ) { // add attachment ID add_post_meta( $post->ID, '_thumbnail_id', $attachment_id, true ); } } } // set featured image before post is displayed (for old posts) add_action( 'the_post', 'rv_auto_featured_image_add_thumbnail' ); // hooks added to set the thumbnail when publishing too add_action( 'new_to_publish', 'rv_auto_featured_image_add_thumbnail' ); add_action( 'draft_to_publish', 'rv_auto_featured_image_add_thumbnail' ); add_action( 'pending_to_publish', 'rv_auto_featured_image_add_thumbnail' ); add_action( 'future_to_publish', 'rv_auto_featured_image_add_thumbnail' ); function rv_auto_featured_image_catch_that_image( $post ) { // Find the images in the post_content. $output = preg_match_all( '//i', $post->post_content, $matches ); $first_img = isset( $matches[1][0] ) ? $matches[1][0]:''; // if no images found, do nothing if ( empty ( $first_img ) ) { return false; } return $first_img; } } The Challenges Ahead for High-Speed Rail Line Between Toronto and Quebec City – BCI 24 News Network

The Challenges Ahead for High-Speed Rail Line Between Toronto and Quebec City

The federal government’s ambitious Toronto–Quebec high-speed rail project has a number of precedents to draw lessons from, many of them successful, but also many of them notoriously over budget and behind schedule. But the bigger question is whether the project will get built at all, given other infrastructure priorities a future government may have.
Prime Minister Justin Trudeau announced last week the rail network’s trains would travel up to 300 kilometres per hour, doubling the speed of Via Rail’s existing trains to cut travel times between Toronto and Montreal nearly in half.
The proposal is not a new idea. The desire for high-speed rail services in Canada dates back to the 1970s during Pierre Trudeau’s tenure as prime minister….