Fix Wrong Picture Thumbnail Of WordPress Post Link in Facebook [ Solved ]

Facebook sometime pick the wrong photo while sharing a post on facebook and if you don’t know how to rectify it in your blog post then we will tell you how you can do it. But befoe we proceed we will tell you that by default facebook takes first image as og:image or feature image as og:image. Generally, the featured image is taken as og:image you can verify same using source code of your blog and find og:image meta tag that looks like below.


If that meta tag is correct and your blog is fetching wrong photo or picture then you can solve this issue by debugging your facebook URL by clicking here
Just enter your blog URL and click fetch new scrape information and what ever change you will do it will reflect in your blogs.

Solution If Facebook Stop Detecting Featured Image

When you share a link on your Facebook profile or on your Facebook page then Facebook crawls the page and looks for Open Graph meta tags in the head to build a complete post preview (with an image, title, description ).If you are using multiple open graph plugin then Look at your site, for another plugin that handle Open Graph review your list of active plugins, find out which one of them is used to manage Open Graph meta tags, and contact the plugin author for more help or disable that so that your post started displaying correct photo.


Block Search Engines From Indexing Image/Photos in WordPress Posts

You can quickly stop any WordPress website from indexing in Google from setting, but you can block the whole site from Dashboard > Settings > Reading but not single post and single post image or any WordPress page.

Search Engines From Indexing Specific Image in WordPress

You can also disable the entire website from indexing in Google by following robots.txt means Search Engines can not search the whole site.

User-agent: *
Disallow: /

To disable single page, category or tags or anything in WordPress, you need to use the robots.txt file, which is a very common method to disable anything from indexing in Google.To use this, you must know simple steps

How to Block/Disable Single Post using Robots.txt

To block single post from search engine simple copy post URL of the post and add the following URL to robots.txt and that should include the URL slug “my-post-URL.” To disallow other posts or pages, you just need to copy and paste relevant URL slugs accurately ( Make sure to use your permalink structure ).

User-agent: *
Disallow: /my-post-url

If you want to disable image directory to index in google then block image directory folder and search engine will not index your images

User-agent: *
Disallow: /wp-content/uploads/

Now to Block Single image in WordPress Post Simply add image URL in robots file as explained in below code

User-agent: *
Disallow: /wp-content/uploads/123.jpg

How to Disable/Block Pages and Post using WordPress Plugin

Another easy way to do this automatically is the use WordPress Yoast Plugin , You can do all indexing and unindexing using plugin setting.Check below video for details.

Using googleon and googleoff tags

use google on off text to tell google not to index any part of post like if you dont want google to index image or any part of post then use that text or image in between google off and google on

<!–googleoff: all–>


<img src=”” alt=”Search Engines From Indexing Specific Image in WordPress” width=”591″ height=”242″ class=”aligncenter size-full wp-image-6763″ />

<!–googleon: all–>

Google Internet

Check Scan or Remove your Hidden Malware from Website

When I click on my site in Google search results I am redirected to a malicious site but it works fine when I enter my URL in the browser address bar. Are you Facing this issue in your website ? If yes then your website is hacked and you need to scan your website and remove that harmful code from your website , this problem will occur in any type of website but generally wordpress user face this ,

There is some malicious script added in your INDEX.PHP OR HEADER.PHP which is done by hacking template file , they do this if your file permission is not correct , set correct file permisison for all files so that no one can access and edit your files without cpanel or ftp access.

  • Try this Free File Viewer site to find harmful and malicious code in your website.

How to Protect Website from Malware attacks

  • Regular automated backups of your database and files.
  • Using strong passwords for your database, ftp, shell.
  • Strong File Permissions 644 for all
  • Deleting unused files and folders.

How to protect your WordPress website from Malware

Your wordpress blog or website can be infected in 5+ general ways.

  • Someone steals FTP /SSH password, so change them. Also, make sure you do not leak Mysql passwords
  •  Bad permissions in server (make sure group and other can not write to theme files) and server is infected.
  • You got a malicious user (check user list in wordpress. Make sure you have no duplicate users, and maybe change your own password).
  •  Vulnerability in plugins or wordpress (update all to latest version)
  •  Go through plugin list and delete plugins you do not know or use.

How to Clean Remove Virus Script from WordPress

If you are geting this issue again and again in your wordpress website then i will suggest you to update whole wordpress again , backup your wordpress wp-config.php file and update the whole wordpress again. If you are new and don’t know how to do it then we will do this for you at a very little cost of $10.

This script will be installed in two place either in your theme folder or in plugin folder or in WordPress install.So if you are attacked again and again then you need to reinstall your wordpress again.


How To Fix Error Login Failed in WordPress Admin Not Working

Unable to get into wp dashboard or the login section of your wordpress website,here’s how you can do it with simple steps

Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

One of those should fix the blank Dashboard.

White Screen of death in WordPress Login Page

If so try:
– deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the default theme to rule out any theme-specific problems?

if not try:

– switching to the default theme by renaming your current theme’s folder in wp-content/themes using FTP or whatever file management application your host provides.

– resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

If still problem exist then Try increase PHP memory in WordPress

Open wp-config which is located in the root WordPress directory and add below code

define('WP_MEMORY_LIMIT', '64M');

If that doesn’t work, try downloading WordPress again and delete then replace your copies of the /wp-admin/ and /wp-includes/ directories with fresh copies from the download.

Useful Link – WordPress Codex

Database Connection Error to Wp-Admin

If you are getting a database error on the wp-admin for instance something like “One or more database tables are unavailable. The database may need to be repaired”, then you need to repair your database.
You can do this by adding the following line in your wp-config.php file:

define('WP_ALLOW_REPAIR', true);

Once you have done that, you can see the settings by visiting this page:

Check Wp-config file for correct username, password, hostname, database name If any thing is wrong you will get Database related error.

Clear Browser Cache to Access Wp Admin

Sometime browser  cache also play and important role in stopping you from stepping in wordpress admin area , so you can also try resolving the issue by clearing your browser cache.

The way you clear the browser cache depends on the particular browser you are using. Here is how you clear the cache on common browsers:

Check Firewall Block you from Logging

Some firewalls also block you from logging in to WordPress. Disable your firewall and try to log in again.

WordPress Support Forum

Still have issue Post your problem in WordPress Support Forum


How to Add Redirecting www to non-www Using .htaccess

.htaccess is the best way to shift your website from www to non www or viceversa , if you are looking to add www or non-www in your website  or  in your wordpress blogs then you can add 301 redirect to your website

301 or permanent redirect basically tells a browser (or search engine spider) that the site or page it is accessing has moved permanently. It then immediately redirects that page to the new one.