• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Embed JSON-LD in WordPress to Give More Information

By Abhishek Ghosh April 24, 2015 12:30 am Updated on April 24, 2015

Embed JSON-LD in WordPress to Give More Information

Advertisement

Here is how to embed JSON-LD in WordPress to give more information to search engine bots including Google bots. JSON-LD is not a visual element. We have talked about JSON-LD before through different articles – you can read these articles before reading this current one – JSON-LD in details and JSON-LD and Google Site Search. In this short guide, we will learn how to embed JSON-LD in WordPress to give more information to the search engines which can be difficult or not needed to present as HMTL text with schema markup. JSON-LD has W3C Recommendation :

Vim
1
http://www.w3.org/TR/json-ld/

 

What We Need To Embed JSON-LD in WordPress?

 

First and foremost important point is to make your WordPress installation fully free of red marked errors on Google’s new micro data testing tool. We talked about how to resolve some errors. Warning is not that important, errors are bad. The bots will ignore more data.

Second step is obvious – you need to validate the JSON-LD. Third is to use some Plugin like Header and Footer to insert it on proper pages – posts or homepage or on other condition.

Advertisement

---

You can embed multiple instances of JSON-LD in one webpage.

 

How To Embed JSON-LD in WordPress and Test?

 

Testing is on Google micro data testing tool. For example, we have used this one for representing the person Dr. Abhishek Ghosh :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Person",
  "name": "Abhishek Ghosh",
  "jobTitle": "Orthopedic Surgeon",
  "additionalName": "Dr. Abhishek Ghosh",
  "url": "http://dr.abhishekghosh.net",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "29F B.T. Road, Panihati",
    "addressLocality": "Kolkata",
    "addressRegion": "West-Bengal"
  }
}
</script>

We can represent patient’s vitals in most complex form. We can represent a product :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script type="application/ld+json">
"@context": "http://schema.org",
"@type": "Product",
"productID": "mpn:ABCD",
"description": "This laptops are the tools you need. .....",
"url": "https://thecustomizewindows.com/does-not-exist/",
"name": "Core i5-4200m / 4GB 500GB 15.6in 1080p Dvdrw Debian Linux",
"image": "https://thecustomizewindows.com/does-not-exist/does-not-exist.jpg",
"model": "911 scam laptop",
"manufacturer": {
"name": "Ponzi Company",
"url": "https://example.com/"
},
"offers": {
"@type": "Offer",
"availability": "http://schema.org/OutOfStock",
"price": "1706.99",
"priceCurrency": "USD"
}
}
</script>

On Google’s tool you can check our URL of suppose on QUIC protocol :

Embed JSON-LD in WordPress to Give More Information

If you see somewhere JSON-LD prototype in this format :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "@context": "http://schema.org",
  "@type": "Person",
  "name": "Abhishek Ghosh",
  "jobTitle": "Orthopedic Surgeon",
  "additionalName": "Dr. Abhishek Ghosh",
  "url": "http://dr.abhishekghosh.net",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "29F B.T. Road, Panihati",
    "addressLocality": "Kolkata",
    "addressRegion": "West-Bengal"
  }
}

It means you need to wrap it with :

Vim
1
2
3
4
5
<script type="application/ld+json">
 
...
 
</script>

 

Bonus For The Genesis Users : Clean The Article Markup

 

If you add this thing on your child theme’s functions.php file, you’ll get a after post widget on posts :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
genesis_register_sidebar( array(
'id'          => 'after-entry',
'name'        => __( 'After Entry', 'theme-prefix' ),
'description' => __( 'This is the after entry section.', 'theme-prefix' ),
) );
add_action( 'genesis_entry_footer', 'my_after_entry_widget'  );
function my_after_entry_widget() {
 
    if ( ! is_singular( 'post' ) )
    return;
 
    genesis_widget_area( 'after-entry', array(
'before' => '<div class="after-entry widget-area"><div class="wrap">',
'after'  => '</div></div>',
    ) );
 
}

You can use PHP Widget to add any stuffs which are not of the Post – very important – like those HTML markups of social share buttons should not get included inside the article wrap. By default these will not work any Genesis child themes.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Embed JSON-LD in WordPress to Give More Information

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Schema.org : Schemas for Structured Data Markup

    Schema.org is a Schemas for Structured Data Markup for creation of more easy semantic web which can be visualized form which fills the human-computer gap.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • JSON-LD in Details

    JSON-LD (JSON for Linked data) refers to the recommendation of the W3C, embedded linked data in the lightweight JSON Format. Here is details.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us
Page Visits Alerts

Recent Posts

  • What Is a Sales Funnel?June 1, 2023
  • The 6G Network: 100 Times Faster than 5GMay 31, 2023
  • What is a Compiler?May 31, 2023
  • How Can I Take Better Pictures With My Samsung Galaxy S23 Ultra?May 30, 2023
  • What is Document Object Model (DOM)May 30, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Embed JSON-LD in WordPress to Give More Information," in The Customize Windows, April 24, 2015, June 1, 2023, https://thecustomizewindows.com/2015/04/embed-json-ld-in-wordpress-to-give-more-information/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT