• 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

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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