Hot answers tagged

7 votes

Correct way to hide pseudo pages from being shown?

The pages should not be indexed if there are no direct links to them. Search engines don't guess at URLs, so I am guessing that a large part of your problem here is with your own code-- that is, you ...
  • 63.9k
5 votes
Accepted

Show only IF not Google bot

This isn't really a WordPress specific question. However, I recently wrote a function for this (and blocking other user agents). Perhaps you could use it, or some of it?: function is_a_bot(){ $...
  • 1,555
4 votes
Accepted

Correct way to hide pseudo pages from being shown?

Well those are two different things: A redirect means they are not accessible any more at all. noindex just means that search engines ignore it while it is still accessible if you access the URL. So ...
  • 5,510
3 votes

Unfamiliar query string in Google Search Console URL not found

This part of the request (URL) %3C?php%20bloginfo('rss2_url');%20?%3E is an attempt to put PHP code in a URL; it's the equivalent of <?php bloginfo('rss2_url'); > It may be that some hacker ...
3 votes
Accepted

Disallow author with robots.txt

If you use Yoast SEO, you can go to Users > All Users, and in the Yoast SEO settings, check Do not allow search engines to show this author's archives in search results. See this link. OR With ...
  • 1,112
3 votes
Accepted

How to stop a 500 error on the WordPress theme folder

Adding this code to the top of the index.php file in your theme will return a 403 if the theme directory is accessed directly: if ( ! defined( 'ABSPATH' ) ) { header( 'HTTP/1.0 403 Forbidden' ); ...
3 votes
Accepted

Wordpress categories being called "archives" in google links. How to remove?

This is likely that you are using an SEO tool. Go to the settings for that tool and remove the word "archive" from the archive section of your SEO. If you DON'T have SEO tool, then get one. An ...
  • 5,467
3 votes
Accepted

Adding JSON Structured Data to WordPress

If you're creating the theme yourself, you can always use Schema Microata markup directly in the theme itself. As we can see in the below example, adding extra attributes to your HTML can make it ...
  • 534
2 votes

Using google graph api with wordpress

You should run updatepage() function after loading the google jsapi script. try jquery ready inside updatepage like this: function updatepage(){ // this line added by me jQuery(document)....
  • 21
2 votes
Accepted

Remove Google Fonts Which Are (Probably) Added By Plugins

If the fonts are loaded from a plugin, a hook will have to be used to insert them, you can disable the hook, but you'll need to know where it's coming from. Mostly because you'll need the handle of ...
  • 1,731
2 votes
Accepted

Prioritize visible content - Page speed issue on Google insights

Where is the fold now? to me, the fold is a little outdated, as it fully depends on the device/monitor size. It may be that JavaScript in the header of your site is blocking the page load. The best ...
2 votes

Is there a way to embed a Google Docs form in a page without using plugins?

You should be able to paste the HTML of the Google Docs iframe directly into the page by using the TEXT mode of the edit form (instead of the VISUAL) mode. That mode allows you to enter the HTML ...
  • 303
2 votes

Google Page Speed Insights - Optimize Images

The question is old. However, there are a lot of people who are facing the same issue in 2018. So, I am giving the the most effective answer. There are different ways to optimize images: Use the ...
2 votes

Google Page Speed Insights - Optimize Images

First, don't let Google Insights drive you to chase an ROI that might not be there. Maybe for 1M of image data improvement, it is worth looking into - but after awhile that tool will have you ...
  • 1,928
2 votes
Accepted

Wordpress 404 errors for old plugin files via Google Bot

I know - I hate the fact that Google indexes the site code, and then floods my logs with 404s for old files. You can add something like this to your robots.txt file: User-agent: * Disallow: /wp-...
  • 1,061
2 votes
Accepted

My WordPress Blog sends malicious traffic to other sites

Your website is infected by Malware. Hackers are using your WordPress website for ‘spamvertising.’ This causes an insane traffic spike. Spam emails are sent from your server with links to existing or ...
1 vote
Accepted

Feed RSS problem on Wordpress, need it for Google News

Your problem is your CDN, Stackpath: I'd guess it's rejecting the feed validator request based on User-Agent string. If you use curl to request the feed, then it serves back Content-Type: text/html ...
  • 3,590
1 vote
Accepted

Old robots.txt file not changing, can't update to the current robots.txt

Just delete file robots.txt. WordPress is generating virtual robots.txt file, and Yoast SEO plugin (and other plugins too) allows you to customize it. But, if you have an actual robots.txt file, it ...
1 vote
Accepted

Unfamiliar query string in Google Search Console URL not found

It's not a standar URL for sure. That kind of URLs are most likely due to the compromised code, so there is no need to do anything with then but remove every trace it left. Since the site is clean ...
  • 2,134
1 vote
Accepted

Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin

Sorted out myself: JSON file indeed was the issue I went back to Google Developer Console and choose to create Credentials again it then gave me an option of OAuth client Id and later an option to ...
1 vote

How can I add a google play badge to my header and footer?

You can edit your header and footer file or you can insert these codes in the functions.php file function add_google_code($url="",$utm_code="",$utm_campaign=""){ ?> <a href='<?php echo $url ?...
1 vote
Accepted

How to add post meta fields to an article's <head> as meta elements

In the post edit screen you can add the data as custom fields and then pull those custom fields into your post templates, like this: If you'd like a better admin interface for these fields, that's ...
1 vote

How to implement Google reCaptcha without installing a plugin?

you can use this function i think it works properly. add_filter( 'wp_authenticate_user', 'verify_recaptcha_on_login', 10, 3 ); function verify_recaptcha_on_login($user, $password) { $secretkey =...
1 vote

WordPress MultiSite Won't Work on Google AppEngine

Google App Engine is a third party host and dealing with them is really off topic here. That error is a simple permission and/or file error and has nothing to do with WordPress itself. You're beter ...
  • 8,508
1 vote

Remove Google Fonts Which Are (Probably) Added By Plugins

I wanted to make a comment to mention this but I don't have enough rep yet to do so. I had a problem similar to this and I used a simple plugin as a basis to solve the issue. You might be able to do ...
1 vote

Feed 404 Errors

For all those who might hit the same problem, here is the solution: Disable in Yoast the "remove category" option in advanced section. Then install this plugin: https://wordpress.org/plugins/remove-...
  • 51
1 vote

Disallow: /wp-* in robots.txt?

It seems to be a WP default setting, as many Webmasters have gotten this warning and never edited the robots.txt. Removing all the disallows is the easiest solution, but I assume you want some or all ...
  • 111
1 vote

Google Apps Domain for WordPress

Jamie, do you already have hosting for your WordPress site? And to be specific, is your WordPress site self-hosted, or are you using WordPress.com? If I understand your question correctly, you will ...
1 vote

Google Places API With ACF

Anything to do with using the Google Places API is going to be off-topic here, but the best place to start would be the developer docs. However, how you interact with the API data within WordPress ...
  • 35.8k
1 vote

Remove Page Timestamp via functions.php so it doesn't show in Google Search Result Description

It depends on what the template uses to output whatever you're trying to remove. If you look in source at whatever function is outputting what you want to remove, they each have a filter to let you ...
  • 76.6k

Only top scored, non community-wiki answers of a minimum length are eligible