refactor(resource): drop aksrt_resource CPT residue, post+meta only
This commit is contained in:
1 parent
24c135aeec
commit
1af0e9b753
22 files changed
+362
-986
No files matched your search
@@ -95,7 +95,7 @@ class AKSRT_SEO_Head {
|
||||
if ($post instanceof WP_Post) {
|
||||
$payload['object'] = $post;
|
||||
$payload['canonical'] = (string) get_permalink($post);
|
||||
$payload['og_type'] = in_array($post->post_type, ['post', 'aksrt_resource'], true) ? 'article' : 'website';
|
||||
$payload['og_type'] = ($post->post_type === 'post') ? 'article' : 'website';
|
||||
|
||||
// 单篇 SEO 覆盖:per-post meta → 文章字段 → 站点默认。
|
||||
$meta = $this->post_seo_meta($post->ID);
|
||||
|
||||
Reference in new issue
Block a user