• 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.

This Article Has Been Shared 278 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Installing WordPress via PHP Script : Cloud Sites and Other WebHosts

    Installing WordPress via PHP Script is a very way to install WordPress on your Server via FTP without Shell Access. The script automatically download and unzip.

  • mod_pagespeed and Google PageSpeed Service

    mod_pagespeed and Google PageSpeed Service has been evaluated and from our tests some parts of mod_pagespeed is good but Google PageSpeed Service lags far away.

  • Creating Spinning Logo for WordPress Genesis and Others

    Creating Spinning Logo for WordPress Genesis and Other Themes is quite easy. Move the mouse over the logo and it will spin. You can control the speed,behavior.

  • WordPress Optimization Tricks : The PHP Files

    WordPress optimization tricks offers you some uncommon and common hacks to optimize the Page Loading speed specific to WordPress files only.

  • W3 Total Cache Pro and WordPress Page Loading Speed

    W3 Total Cache Pro has recently been introduced by W3TC Plugin developer and here is some questions frequently asked by the WordPress users as suggestion.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • What is Standard Software February 28, 2021
  • WordPress Link to text Fragment February 27, 2021
  • How to Protect IP Cameras From Hackers February 25, 2021
  • 6 Sectors That Have Undergone Revamps in Digital Landscape February 24, 2021
  • What You Can Control with a Smartwatch and ESP32 February 23, 2021

 

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, March 1, 2021, https://thecustomizewindows.com/2015/04/embed-json-ld-in-wordpress-to-give-more-information/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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