Schema Data is one of the hot topics of SEO, and in this tutorial, we will be learning how to generate & Add Schema Data Without Plugin. Currently, Schema Data is not a ranking factor but if it is appearing in search results there is a high chance that your webpage will grab the highest clicks as compared to others.
What Is Schema Markup?
Schema markup (Schema.org) is structured data that helps search engines to easily understand the content of that page. These data can be anything Name, Phone Number, Address, etc.
Schema.org has around 632 schema data but from all these google supports around 32 formats you can view all these at Google Rich Snippet Gallery.
How To Create Schema Data?
Step 1: Go to Schema Markup Generator tool by TechnicalSEO you can also use Structured Data Markup Helper by Google
Step 2: Select a schema type you want to generate
Step 3: Fill in the details
Step 4: Copy the code
Step 5: Test the code eligibility at Rich Result Test Tool by Google
That’s all
How To Use Schema Data In WordPress Website Without Plugin?
Step 1: Log In to your WordPress Dashboard
Step 2: Go to Posts > Add New > 3 Dot > Preferences

Step 3: From the pop up click on Panels > In additional section Enable Custom fields > Click Enable & Reload

Step 4: Find the Custom Fields section > Tap on Enter new

Step 5: Under Name type schema & under value box paste your schema code > Click Add Custom Field button
To use another Schema repeat this step again and again.

Step 6: Structured Data will be added to that post. You can edit or delete this code in the future.

Step 7: Navigate to Appearance > Theme Editor > header.php

Step 8: Above </head> paste the below code > Click Update File
Don’t forget to take a backup of your site before doing this to restore if something goes wrong.
<?php
$schema = get_post_meta(get_the_ID(), 'schema', true);
if(!empty($schema)) {
echo $schema;
}
?>
To add Schema in old published posts you have to edit (use the default editor if you use any page builder) them and follow the procedure from Step 4.
Note: Step 7 is one-time work so don’t repeat this for every post.
Congrats!
People Also Ask
We have a tool by Google Structured Data Testing Tool, which you can check. All you have to do is to enter the website URL and tap Run Test to check. If there is any error, then it will be available on the screen.
No, Schema Data is not a Ranking Factor but it will help you gain CTR in SERP. Because search engines like Google display extra data about your site along with the Title, URL, and Meta Description.
You can use all the required Schema Data on a page if the data/information is available on that page.
It is because Schema Data is built-in JSON-LD (Javascript Object Notation for Linked Objects) format and this format is not for human visitors. It is only for search engines.
You can place it anywhere in the page Header, Footer, or anywhere in the middle. But make sure it is available on the right page.
Wrap Up
I hope this article would be useful for you to learn how to create & use schema data in a WordPress website without a plugin with this step-by-step tutorial. If you have any query make sure to drop them in the comment below.