sajjadbaqri
Forum Replies Created
-
But the actual problem for which this forum was created has not been solved yet…
It seems like your to-do list is very long. Huh?
Hello @talextech !
I am using Nextend social login plugin as well. This plugin works automatically on the custom login pop-up of the home page. It is the problem of the Advanced Google reCAPTCHA plugin that it does not insert the Google reCAPTCHA v3 to the login pop-up.
I am okay with customizing the code in order to fix the issue. But could you please guide me on which files I have to modify to fix the issue. How can I make sure that Google reCAPTCHA v3 is displayed on every login form (whether default or custom) just like what is done by the Nextend Social Login Plugin (social login buttons are displayed on every form whether default or custom)?
I understand that it requires some extra JavaScript to achieve this functionality. Could you please guide me on what kind of code I have to write in javascript to fix my issue?
Forum: Plugins
In reply to: [Yoast SEO] Sitemap Not OpeningUpdate: The problem got fixed when I changed my permalinks from plain to post name. The 404 page and the Yoast XML stop working for some reason if the permalinks is set to plain. The problem is now fixed after I changed my permalinks to something else
Forum: Plugins
In reply to: [Yoast SEO] Sitemap Not OpeningI have created a staging environment stagin.iblagh.in – deactivated all non-Yoast plugins and switched to a standard theme?like?Twenty Twenty-Four. But still the 404 problem is not fixed.
But the issue still persists.
Forum: Plugins
In reply to: [Yoast SEO] Sitemap Not OpeningMy wordpress website shows 404 error when I open my website’s sitemap (even though XML sitemaps are on)
Secondly, it has to be noted that the 404 error page which is displayed is NOT the 404 error page of my theme. Instead, it is the 404 error page of Hostinger, my hosting provider. This problem also has to be fixed that why my Hostinger’s error page is displayed instead of displaying my Active Theme’s error page.
The irony is that I have another website using the same version of the same theme and plugins, but the error page is displayed correctly on that website (the error page of my theme is displayed instead of the error page of Hostinger). Besides, on that website, the sitemap works well and no error is shown when opening it. Therefore, this shows that the problems faced by me is not related to my theme or plugins.
Forum: Plugins
In reply to: [Yoast SEO] Sitemap Not OpeningI did. But the error is not fixed yet.
Forum: Plugins
In reply to: [Yoast SEO] Sitemap Not OpeningEven after switching off the Yoast sitemaps, the WordPress sitemap shows the same error.
Forum: Plugins
In reply to: [Yoast SEO] og:image is not displayed while sharing a post to WhatsAppThe problem got fixed by adding the following code to the functions.php:
function set_featured_image_as_social_and_og_image() {
if (is_single() || is_page()) {
global $post;// Check if the post has a featured image if (has_post_thumbnail($post->ID)) { $featured_image_url = get_the_post_thumbnail_url($post->ID, 'full'); // Set the featured image as the social image for Yoast SEO update_post_meta($post->ID, '_yoast_wpseo_opengraph-image', $featured_image_url); update_post_meta($post->ID, '_yoast_wpseo_twitter-image', $featured_image_url); // Add Open Graph tags if they don't exist add_action('wp_head', function() use ($post, $featured_image_url) { global $wp_filter; // Check if Yoast SEO is adding the og:image tag $yoast_exists = false; if (isset($wp_filter['wpseo_opengraph'])) { foreach ($wp_filter['wpseo_opengraph']->callbacks as $priority => $functions) { foreach ($functions as $function) { if (strpos($function['function'][1], 'og_image') !== false) { $yoast_exists = true; break 2; } } } } // Add Open Graph tags if Yoast SEO is not adding them if (!$yoast_exists) { $title = get_the_title($post->ID); $description = get_the_excerpt($post->ID); $url = get_permalink($post->ID); echo '<meta property="og:title" content="' . esc_attr($title) . '">' . "\n"; echo '<meta property="og:description" content="' . esc_attr($description) . '">' . "\n"; echo '<meta property="og:url" content="' . esc_url($url) . '">' . "\n"; echo '<meta property="og:image" content="' . esc_url($featured_image_url) . '">' . "\n"; echo '<meta property="og:type" content="article">' . "\n"; } }, 5); } }
}
add_action(‘wp’, ‘set_featured_image_as_social_and_og_image’);Forum: Plugins
In reply to: [Yoast SEO] og:image is not displayed while sharing a post to WhatsAppI have not set the image in the social tab. However, what if, I want my social image be the featured image of all of my posts in wordpress. Is there any way that the social image is automatically chosen the same as the featured image of the post? Setting the image twice from two different places (Featured image and social image) is not very user-friendly. I want to set the featured image only and it must automatically be selected as the social image. Please note that I know no coding and I cannot add a custom code to the plugin by myself.