n Name: HQJDW Popular Posts Cache * Description: Caches the Zimeiti popular-posts widget and prevents per-request view-count sorting. */ defined( 'ABSPATH' ) || exit; function hqjdw_popular_posts_cache_key( WP_Query $query ) { $excluded = $query->get( 'post__not_in' ); $excluded = is_array( $excluded ) ? array_map( 'absint', $excluded ) : array(); sort( $excluded, SORT_NUMERIC ); return 'hqjdw_popular_posts_' . md5( implode( ',', $excluded ) ); } add_filter( 'posts_pre_query', static function ( $posts, $query ) { if ( is_admin() || 'post_views_count' !== $query->get( 'meta_key' ) || 'meta_value_num' !== $query->get( 'orderby' ) || 5 !== (int) $query->get( 'posts_per_page' ) ) { return $posts; } $cache_key = hqjdw_popular_posts_cache_key( $query ); $ids = get_transient( $cache_key ); if ( false === $ids ) { $query->set( '_hqjdw_popular_cache_key', $cache_key ); $query->set( 'no_found_rows', true ); return $posts; } $ids = array_values( array_filter( array_map( 'absint', (array) $ids ) ) ); if ( ! $ids ) { return array(); } $query->found_posts = count( $ids ); $query->max_num_pages = 1; return get_posts( array( 'post__in' => $ids, 'orderby' => 'post__in', 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => count( $ids ), 'no_found_rows' => true, 'ignore_sticky_posts' => true, 'suppress_filters' => true, ) ); }, 10, 2 ); add_filter( 'posts_results', static function ( $posts, $query ) { $cache_key = $query->get( '_hqjdw_popular_cache_key' ); if ( $cache_key && $posts ) { set_transient( $cache_key, wp_list_pluck( $posts, 'ID' ), 10 * MINUTE_IN_SECONDS ); } return $posts; }, 10, 2 ); :wq 坐着高铁游湖南!候车厅变“文旅会客厅” – 环球焦点
首页 新闻 坐着高铁游湖南!候车厅变“文旅会客厅”

坐着高铁游湖南!候车厅变“文旅会客厅”

长沙晚报9月15日讯(全媒体记者 吴鑫矾)9月15日,“坐着高铁游湖南”2026湖南文旅秋季推广活动在长沙火车南站候车大厅启动。从即日起至9月24日,湖南14个市州将轮流在高铁站开展文旅推介,把候车厅变成“文旅会客厅”,为南来北往的旅客送上惊喜。

文章配图-1

本次活动由湖南省文化和旅游厅、中国铁路广州局集团有限公司主办,湖南14个市州文旅部门、长沙火车南站共同承办。活动现场推介了2026湖南秋季精品旅游线路,涵盖京广、沪昆、张吉怀、衡柳、渝长厦5条高铁沿线,串联株洲炎陵五彩谷、娄底紫鹊界梯田、张家界金鞭溪、永州桐子坳、益阳大通湖等各市州秋季热门打卡地,为游客提供多样化的秋日出行选择。现场还推介了由广铁集团联合湖南文体旅集团打造的白云号、潇湘号、红棉号3列定位差异化的旅游列车,长沙南站通过视频《一张车票的邀约》推介旅游计次定期票、红色研学专列、主题旅游专列、集团大客户票、专属客户经理服务、礼遇行贵宾服务六大类高铁旅游产品与服务。湖南高铁网络不断加密,为文旅产业发展打通了“交通大动脉”。未来10天,全省14个市州将按排期轮流登场,打造专属文旅主题日,带来民俗表演、景区线路推介、专属优惠政策等内容。

文章配图-2

来源:长沙晚报

热门文章