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, "") !== false) return $content;
$info = "
👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 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, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
https://aurorahh.com/post-sitemap.xml
2026-05-21T03:28:18+00:00
https://aurorahh.com/page-sitemap.xml
2026-05-21T03:22:45+00:00
https://aurorahh.com/slider-sitemap.xml
2019-06-24T19:05:11+00:00
https://aurorahh.com/category-sitemap.xml
2026-05-21T03:28:18+00:00
https://aurorahh.com/author-sitemap.xml
2026-04-14T20:24:40+00:00