• 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 » Add Itemprop image Schema in WordPress Posts

By Abhishek Ghosh October 8, 2013 6:27 pm Updated on July 1, 2016

Add Itemprop image Schema in WordPress Posts

Advertisement

Add Itemprop image Schema in WordPress Posts regardless of your type of Theme or Theme Framework – its do-it-yourself guide without keeping hit or miss chance. We are supplying enough information for getting Itemprop image Schema in WordPress Posts in various ways, its not really that easy. There are hundreds of Themes, Theme Frameworks, Plugins which alters the default expected way WordPress works. Although Itemprop image Schema is possibly not that important at this moment, you might want a full schema things for your posts.

 

Itemprop image Schema : Basics of the DIY work

 

As said above, there is no ideal Plugin or Theme Framework that adds Itemprop image Schema nicely, our recommended Itemprop Plugin will not work here. So we need some basic PHP, WordPress functions, so that the custom data is added as meta, its a kind of compromise, but will work. The basics of this do-it-yourself work is depending on your skill, but these are important guides for the path :

 

  1. Showing Open Graph Protocol og image, og description Properly
  2. Rich Pins Pinterest for WordPress

Yes, you need either a modifiable plugin or change something in your functions.php file of Theme or Child Theme. Second one is difficult to say – it hugely differs. Plus browsers still needs some HTML data in normal, traditional way.

Advertisement

---

 

Itemprop image Schema : Understanding the Problems and Effective Snippets

 

The schema of image is here :

 

Vim
1
http://schema.org/image

 

So, properties of URL and Thing will come in to count. For practical purpose, we need :

 

  1. The itemprop markup itself
  2. The url of the image
  3. The url of the post
  4. May be description (= Excerpt)
  5. May be Author
  6. May be copyright
  7. May be dimensions
Add Itemprop image Schema in WordPress Posts

First method is to try to alter the image.php (or something named like that) of your theme or template where you will find to echo (The PHP function, notthe normal meaning) the href=”%s” to :

 

Vim
1
echo apply_filters( 'Theme-Name_single_image_html', sprintf( '%s', $image_link, $image_title, $image ), $post->ID );

 

Quite unfortunately, there is no universal code – the parameters are too much varied.

 

Second way is to run SQL querry :

 

Its quite risky and you must know or rather master posts like this one – Indispensable MySQL queries for custom fields in WordPress.

We like to get HTML5 figure thing too, so a bit coding, either you can use as plugin or add it to functions.php file of theme :

Credits are given in the gist. Other complex way will be to return value in JSON format – kind of double filtering. Its too complicated to think though!

Tagged With itemprop=image
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 Add Itemprop image Schema in WordPress Posts

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

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

  • Host1Plus Review With Performance Benchmarking

    Here is Host1Plus Review With Performance Benchmarking Report Done By Us. Host1Plus Uses OpenVZ Virtualization & Has Extra Managed Services.

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

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

  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
  • What is JTAG in Electronics?September 15, 2023
  • iPhone 15 Pro Max Vs Samsung Galaxy S22/S23 UltraSeptember 14, 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