ID; $title = get_the_title($current_id); $content = apply_filters('the_content', $post->post_content); // 获取所有发布状态的页面,按菜单顺序排列 $pages = get_posts(array( 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'ASC' )); // Logo URL $logo_url = '/wp-content/uploads/custom/logo.jpg'; if (file_exists(ABSPATH . 'wp-content/uploads/custom/logo.jpg')) { $logo_url .= '?v=' . filemtime(ABSPATH . 'wp-content/uploads/custom/logo.jpg'); } // 图标映射 $icons = [ 1 => '👣', 2 => '🗣️', 3 => '❤️', 4 => '🎯', 5 => '✨', 6 => '📜', ]; ?> >