Here is the solution when you need to do a 301 redirect for a URL (or many URLs) for a WordPress site the right way. This will show you how to manually add Rewrite rules directly to your .htaccess file. This method works. Doing a 301 Redirect for a URL on your WordPress site when … Read more →
Archive for “SEO (Search Engine Optimization)”
SEO (search engine optimization) tips to improve your search engine ranking for your website.
Updated for WordPress 4.7 which no longer automatically adds the alt attribute to featured images. The WordPress default themes call the image thumbnail like this: By default, the image returned does not have a title or alt attribute. (Since WordPress 4.7, the alt attribute is no longer added automatically. It will only have an alt … Read more →
There are 2 ways to add a favicon to your website. 1. The easiest way is to make sure your favicon is named ‘favicon.ico’ and then place it in the root of your website. In that case, you don’t have to add any code to the head of your HTML. 2. On the other hand, … Read more →
This shows you how to add microdata to WP Family Tree (“WP Family Tree” WordPress Plugin by Arvind Shah). I add microdata for the ‘Person’ item type. Then I add the ‘Person’ properties ( itemprop ) of name, birth date, death date, parent, children, sibling, and image. These changes will take effect on single family … Read more →
This code adds microdata from Schema.org to your WordPress thumbnails (a.ka. featured images). It will add the attribute itemprop:image inside the tag of the featured image. This simple method doesn’t require the use of functions.php. You just pass the parameter along the “the_post_thumbnail” template tag. This is done directly on any template file or index.php … Read more →