From b98dd8467eb3b381be3d2ae268d01a709d373d63 Mon Sep 17 00:00:00 2001
From: g023 <127174111+g023@users.noreply.github.com>
Date: Mon, 16 Oct 2023 18:09:00 -0600
Subject: [PATCH] Updated head meta on page or post display
---
.../plugins/superez-ai-seo/superez-ai-seo.php | 69 +++++++++++++++++--
1 file changed, 62 insertions(+), 7 deletions(-)
diff --git a/wp-content/plugins/superez-ai-seo/superez-ai-seo.php b/wp-content/plugins/superez-ai-seo/superez-ai-seo.php
index 589b5de..8664d5e 100644
--- a/wp-content/plugins/superez-ai-seo/superez-ai-seo.php
+++ b/wp-content/plugins/superez-ai-seo/superez-ai-seo.php
@@ -690,24 +690,79 @@ function my_seo_plugin_head() {
*/
$meta_description = get_post_meta($post->ID, 'ez-meta-desc', true);
- if (!empty($meta_description)) {
+ if (!empty($meta_description))
echo '';
- }
+
$meta_keywords = get_post_meta($post->ID, 'ez-meta-keywords', true);
- if (!empty($meta_keywords)) {
+ if (!empty($meta_keywords))
echo '';
- }
+
$meta_categories = get_post_meta($post->ID, 'ez-meta-categories', true);
- if (!empty($meta_categories)) {
+ if (!empty($meta_categories))
echo '';
- }
+
$meta_tags = get_post_meta($post->ID, 'ez-meta-tags', true);
- if (!empty($meta_tags)) {
+ if (!empty($meta_tags))
echo '';
+
+ // handle social twitter/opengraph/facebook/whatever
+ $social_title = get_post_meta($post->ID, 'ez-meta-title', true);
+ $social_desc = get_post_meta($post->ID, 'ez-meta-desc', true);
+
+ if (!empty($social_title))
+ echo '';
+ else
+ echo '';
+
+ if (!empty($social_desc))
+ echo '';
+ else
+ echo '';
+
+ // handle twitter
+ if (!empty($social_title))
+ echo '';
+ else
+ echo '';
+
+ if (!empty($social_desc))
+ echo '';
+ else
+ echo '';
+
+/*
+ // handle image (use wp. to get image)
+
+ if (!empty($social_image)) {
+ echo '';
+ echo '';
+ }
+
+ // handle url
+ $social_url = wp.get_permalink($post->ID);
+ if (!empty($social_url)) {
+ echo '';
+ echo '';
+ }
+
+ // handle site name
+
+ // $social_site_name = get_post_meta($post->ID, 'ez-meta-site-name', true);
+ $social_site_name = get_bloginfo('name');
+ if (!empty($social_site_name)) {
+ echo '';
}
+
+ // handle type
+ $social_type = wp.get_post_type($post->ID);
+ if (!empty($social_type)) {
+ echo '';
+ }
+
+ */
}