/* * Morocco Private Tours Blog * Shortcode: [mpt_blog] */ if (!defined('ABSPATH')) { exit; } /* Image: featured image, then first image in article. */ function mpt_blog_thumbnail($post_id) { $featured = get_the_post_thumbnail_url($post_id, 'large'); if ($featured) { return $featured; } $content = get_post_field('post_content', $post_id); if (!$content) { return ''; } /* Gutenberg / WordPress image attachment. */ if (preg_match('/wp-image-([0-9]+)/i', $content, $match)) { $image = wp_get_attachment_image_url((int) $match[1], 'large'); if ($image) { return $image; } } /* Image URL inside the article, including lazy-loaded images. */ if (preg_match_all('/]*>/i', $content, $images)) { foreach ($images[0] as $tag) { foreach (array('data-src', 'data-lazy-src', 'src') as $attribute) { $pattern = '/\b' . preg_quote($attribute, '/') . '\s*=\s*(["\'])(.*?)\1/is'; if (preg_match($pattern, $tag, $match)) { $image = html_entity_decode( $match[2], ENT_QUOTES, 'UTF-8' ); if (strpos($image, '//') === 0) { $image = 'https:' . $image; } elseif (strpos($image, '/') === 0) { $image = home_url($image); } if (preg_match('~^https?://~i', $image)) { return esc_url_raw($image); } } } } } return ''; } /* Fetch published articles, newest first. */ function mpt_blog_query($page = 1) { return new WP_Query(array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 6, 'paged' => max(1, (int) $page), 'orderby' => array('date' => 'DESC', 'ID' => 'DESC'), 'ignore_sticky_posts' => true, 'has_password' => false, )); } /* Generate the article cards. */ function mpt_blog_cards($query) { ob_start(); foreach ($query->posts as $article) { $post_id = $article->ID; $title = get_the_title($post_id); $link = get_permalink($post_id); $image = mpt_blog_thumbnail($post_id); $excerpt = $article->post_excerpt; if (!$excerpt) { $excerpt = strip_shortcodes($article->post_content); } $excerpt = wp_trim_words( wp_strip_all_tags($excerpt), 24, '…' ); ?>
<?php echo esc_attr($title); ?> Morocco Travel Journal
mpt_blog_cards($query), 'has_more' => $page < (int) $query->max_num_pages, )); } add_action('wp_ajax_mpt_blog_more', 'mpt_blog_load_more'); add_action('wp_ajax_nopriv_mpt_blog_more', 'mpt_blog_load_more'); /* Blog shortcode. */ function mpt_blog_shortcode() { $query = mpt_blog_query(1); $id = wp_unique_id('mpt-blog-'); ob_start(); ?>
Morocco Private Tours • Blog

Your Morocco travel inspiration

Explore our latest articles, destination guides and practical tips for your next journey through Morocco.

Latest articles

post_count) { echo 'Our travel articles are coming soon.'; } ?>

Transport for Cultural Events in Casablanca 2026

As Casablanca gears up for the highly anticipated cultural events in 2026, understanding the transport infrastructure is crucial for visitors and participants alike. The city is renowned for its rich history and vibrant culture, making it an ideal host for international events. Efficient transport systems will play a significant role in enhancing the experience for attendees, ensuring seamless connectivity and accessibility to various venues.

Enhancements in Public Transport

In preparation for 2026, Casablanca has made significant investments in enhancing its public transport systems. The expansion of the tram network is a key focus, with additional lines being constructed to connect major cultural venues and attractions. This development will facilitate easy access for both locals and tourists, reducing congestion and making it easier to navigate the city during event days.

Integration of Modern Technologies

To complement its transport enhancements, Casablanca is also integrating modern technologies into its transport management systems. Real-time tracking apps will enable users to monitor public transport schedules and availability. This technological integration will not only streamline travel but also provide crucial information to event organizers, helping them manage large crowds more effectively.

Accessibility Considerations

Accessibility is a top priority as Casablanca prepares for its cultural events. The city is committed to ensuring that all venues are reachable for individuals with disabilities. Transport services will include specially equipped vehicles and designated routes to accommodate everyone, making it easier for all attendees to participate in the festivities and cultural showcases.

Collaboration with Local Businesses

Collaboration with local businesses will also play a vital role in facilitating transport during the cultural events. Partnerships with ride-sharing services and local taxi companies are being established to provide additional transport options for attendees. This collaborative approach will not only improve the transport landscape but also support the local economy by promoting accessibility to various cultural hubs.

Looking Ahead

As Casablanca prepares for the cultural events in 2026, the focus on transport infrastructure highlights the city’s commitment to delivering a world-class experience. With enhancements in public transport, the integration of technology, and a strong emphasis on accessibility, attendees can expect a seamless journey throughout the events. The strategic planning undertaken today will ensure that Casablanca shines as a cultural beacon on the global stage.

Leave a Reply

Your email address will not be published. Required fields are marked *