Do you want your website to stand out on Google? Have you ever noticed search results that show star ratings, recipe cooking times, or FAQ dropdowns? Those “extra” details are not there by accident. They appear because of something called schema markup. Learning how to add JSON-LD schema in WordPress correctly helps search engines understand your content and improves your chances of getting rich results.
If you are a beginner, the thought of adding code to your website might feel scary. However, it is much simpler than it sounds. In this guide, we will show you exactly how to add JSON-LD schema in WordPress without needing to be a computer expert. By the end of this article, you will know how to make your website “speak” the same language as Google.
What is JSON-LD Schema? (Simple Explanation)
Let’s start with the basics. Imagine you are at a crowded party. You are trying to tell someone your name, but the music is too loud. To make sure they understand, you write your name on a piece of paper and show it to them.
Schema markup (also known as structured data) is that piece of paper. It is a special set of information you give to search engines like Google, Bing, and Yahoo. It helps them understand what your page is about.
While humans see text, images, and colors on a website, Google sees code. JSON-LD (which stands for JavaScript Object Notation for Linked Data) is simply the most popular way to write this code. It is a neat, organized “list” of details about your content.
For example, if you have a recipe blog, your JSON-LD schema might tell Google:
- “This is a recipe.”
- “The cooking time is 30 minutes.”
- “It has 500 calories.”
- “The rating is 4.8 stars.”
By providing this data, you make Google’s job much easier.
Why JSON-LD is Recommended by Google
There are different ways to add schema markup to a site, such as “Microdata” or “RDFa.” However, Google explicitly recommends JSON-LD.
Why? Because JSON-LD is cleaner. Older methods required you to wrap code around every single word or image on your page. This made the website code messy and hard to read. JSON-LD is different. It is a single block of code that lives in one place (usually the header or footer of your site). It doesn’t interfere with your design or slow down your page.
Google prefers it because its bots can find and read it very quickly. When Google is happy, your SEO (Search Engine Optimization) usually gets a boost!
Benefits of Adding Schema to WordPress
Adding WordPress schema isn’t just about being “techy.” It offers real-world benefits for your business or blog:
- Google Rich Results: This is the biggest benefit. Rich results are search listings that look better than standard ones. They include images, ratings, and extra links.
- Higher Click-Through Rate (CTR): When your link looks better (like having 5 gold stars), more people will click on it compared to a plain text link.
- Better Voice Search Performance: When people ask Alexa or Siri a question, these assistants often pull answers from structured data.
- Faster Indexing: Helping Google understand your content means it can categorize and show your site in search results more accurately and faster.
- Competitive Edge: Many of your competitors might not be using schema yet. Using it gives you a professional advantage.
Ways to Add JSON-LD Schema in WordPress
There are two main ways to add JSON-LD schema in WordPress:
1. Using a Heavy SEO Plugin
Many people use all-in-one SEO plugins like Yoast or Rank Math. While these are great, they often add a lot of “bloat” (extra code you don’t need) to your site. Sometimes, they generate a schema automatically that you might not even want.
2. Using a Lightweight Custom Plugin (Recommended)
If you want total control without slowing down your site, using a dedicated, lightweight tool is best. One of the best free options for beginners is the BBH Custom Schema plugin. It is a very lightweight and totally free plugin to add any custom schema to your website.
It allows you to paste your specific JSON-LD code exactly where it needs to go without any fuss. And the main advantage is that the BBH Custom Schema Plugin does not generate anything automatically.
Step-by-Step Guide: How to Add JSON-LD Schema in WordPress
Ready to get started? Follow these simple steps to add structured data to your site today.
Step 1: Generate JSON-LD Schema Using a Tool
You don’t have to write the code yourself! There are many free tools online called Schema Generators. You can also use AI tools like ChatGPT or Gemini to create the code for you.
Simply search for a “Schema Markup Generator.” You will select the type of schema you need (like “Article,” “Local Business,” or “FAQ”) and fill in the blanks with your information.
Step 2: Copy the JSON-LD Structured Data
Once you fill in your details, the tool will show you a block of code starting with <script type="application/ld+json">. Copy this entire block of code.
Step 3: Add Schema to a WordPress Post or Page
Now, you need to put that code on your website. Since we want to keep things simple and fast, we will use the BBH Custom Schema plugin.
- Log in to your WordPress Dashboard.
- Go to Plugins > Add New.
- Search for “BBH Custom Schema”.
- Install and Activate the plugin.
- Go to the specific Post or Page where you want to add the schema.
- Scroll down to the bottom of the editor. You will see a new box labeled “BBH Custom Schema”.
- Paste your copied code into that box.
This plugin is great because it only loads the schema on that specific page, keeping your site fast.
Step 4: Save and Publish the Page
After pasting the code, click the Update or Publish button on your WordPress page. Your schema is now live!
Step 5: Test the Schema Using Google Rich Results Test
Never guess if your code is working. You must perform a schema validation.
- Go to the Google Rich Results Test website.
- Paste the URL of the Page/Post you just updated.
- Click “Test URL.“
- Google will tell you if the schema is “Valid” and show you exactly what rich results your page can now display.
Simple Example of JSON-LD Schema Code
If you are curious about what the code looks like, here is a very basic example of a “Local Business” schema:
JSON
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "My Awesome Coffee Shop",
"image": "https://example.com/photo.jpg",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "Dhaka",
"addressCountry": "BD"
},
"telephone": "+880123456789"
}
</script>
As you can see, it is just a list of labels (like “name” or “telephone”) and the answers next to them.
Tips for Using Schema Correctly
- Be Truthful: Only add schema that matches what is actually on the page. If you add the “Review” schema, but there are no reviews on the page, Google might penalize you.
- Use Specific Types: Don’t just use “WebPage” schema. If you wrote a guide, use “Article.” If you are selling something, use “Product.”
- Keep it Updated: If your business hours or prices change, make sure to update your JSON-LD code too.
- One Schema Per Concept: Avoid adding five different “Article” schemas to one single blog post. Keep it clean.
Common Mistakes to Avoid

There are a few common mistakes that we made at the time of adding Schema, and we must avoid them –
- Missing Brackets: If you manually edit the code and miss a curly bracket
{ }, the whole schema will break. Always use a generator and a validator. - Hidden Content: Do not use schema to describe content that is hidden from the user. Google wants to see that the “structured data” matches the “visible data.”
- Plugin Overlap: Don’t use three different plugins to add schema. They might conflict and confuse Google. Stick to one reliable method, such as BBH Custom Schema.
- Ignoring Errors: If the Google Rich Results Test shows a red error, fix it immediately. A “Warning” is okay, but an “Error” means the schema won’t work.
FAQ Section (AEO Optimized)
1. Does adding schema markup improve my rankings?
Schema markup is not a direct ranking factor, but it helps Google understand your content better. Indirectly, it improves your Click-Through Rate (CTR) because of Google rich results, which can lead to higher rankings over time.
2. Can I add JSON-LD schema without a plugin?
Yes, you can add it manually to your header.php file or use the “Custom HTML” block in the Gutenberg editor. However, using a plugin like BBH Custom Schema is safer for beginners because it prevents you from accidentally breaking your website’s code. Also, learn what the Best Free Plugin for Schema org on a WordPress Website?
3. How long does it take for rich results to show on Google?
It depends on how often Google crawls your site. The time it takes can vary from several days to a couple of weeks. If you want to move faster, you can ask Google to crawl your page sooner by using the ‘Request Indexing‘ tool inside Google Search Console.
4. Is JSON-LD better than Microdata?
Yes. Google explicitly recommends JSON-LD because it is easier to implement and maintain. It does not mess with your website’s visual HTML, making it the preferred method for structured data.
Conclusion
Learning how to add JSON-LD schema in WordPress is one of the best things you can do for your website’s SEO. It makes your site look professional, helps you stand out in search results, and gives Google the clear information it craves.
You don’t need to be a developer. By using a free generator and a lightweight plugin like BBH Custom Schema, you can enhance your website in just a few minutes. Start by adding schema to your most important pages, test them with Google’s validation tool, and watch your search presence grow!









