How to Fix the Missing Author hEntry on Page WordPress

Onetotech.com – Have you ever received a warning during a structured data schema test that says the “author” tag does not exist. And the error lies in hEntry / microformat on your wordpress page. Some Blog owners may find it hard to find where the error is, but I’ve found the tips to fix the error. How to Fix the Missing Author (hEntry) in Page WordPress ? Please see the instructions below.

There are many WordPress templates that provide accurate data structures, but not all like our wishes. Because premium templates usually have to pay dearly. So if you encounter an error in the schema data structure that says that the author’s tag is missing, here’s how to Fix the Missing Author hEntry.

How to Fix the Missing Author (hEntry) on Page WordPress

Fix the Missing Author hEntry in Page WordPress

To fix the problem for the missing author tags, follow these steps:

Find the script code of the <?php author ();?> in your single.php theme file, it might look like this:

<span class="theauthor"><?php the_author(); ?>

Change the code above to be like below. We will add a class vcard and next we will add the fn class. An example of the change would be like this:

<span class="vcard author theauthor"><span class="fn"><?php the_author(); ?></span></span>

As you can see, this adds a bit of markup, but it will prevent the error from appearing. If you can not find or encounter any problems with this code, please contact your theme developer for help. Or can show screen capture file in your template in comment field, I will help you guide.

Those are tips on How to Fix the Missing Author hEntry on Page WordPress. If you have any questions please leave a comment below.

Last Modified : 2018-04-10
Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *