Schema = search engine ki language. Jab aap schema use karte ho — Google ko explicitly bata rahe ho: "ye entity hai, ye uske attributes hain, ye uski value hai." Rich snippets ka yahi secret hai.
Schema.org ek vocabulary (dictionary) hai jo Google, Bing, Yahoo aur Yandex ne milke 2011 mein banaya. Is vocabulary mein thousands of "types" aur "properties" defined hain jo aap apni website pe use kar sakte ho.
Pehle wala concept yaad karo — EAV Model (Entity → Attribute → Value). Schema markup exactly yahi karta hai — lekin ek structured, machine-readable format mein. Google seedha padhta hai aur samajhta hai.
Schema use karne ka direct faida: Rich Snippets. Ye woh extra information hai jo Google search results mein aapki listing ke saath show hoti hai — star ratings, price, FAQ accordion, breadcrumbs — ye sab schema ki wajah se possible hote hain.
Normal search result vs schema-powered rich snippet — dono mein fark dekho:
Rich snippet wali listing zyada space leti hai, zyada information show karti hai, aur click-through rate (CTR) dramatically improve hota hai — usually 20–30% more clicks without any ranking change.
FAQ Rich Snippet — Real Preview
Search: "WebHostingPK pricing"
Schema markup 3 formats mein likha ja sakta hai. Google teenon support karta hai — lekin ek clear winner hai:
<script type="application/ld+json"> tag mein HTML se alag rakho. Google officially recommend karta hai. Easy to manage. WordPress plugins easily inject karte hain.
HTML elements pe directly attributes add karo (itemscope, itemprop). Purana method. HTML aur schema mix hoti hai — maintain karna mushkil. Avoid karein.
HTML tags ke andar attributes. Mostly government aur academic sites use karti hain. Regular web projects ke liye usually zaroori nahi.
JSON-LD ki structure samjho — ye har schema type mein same rehti hai. Sirf @type aur properties change hoti hain:
<script type="application/ld+json"> { "@context": "https://schema.org", // hamesha yahi rehga "@type": "Organization", // entity type — ye change hoga "name": "WebHostingPK", // entity ka naam "url": "https://webhostingpk.com", // entity ka URL "description": "Pakistan ki best NVMe hosting company" // ... aur properties add karo } </script>
Har JSON-LD script mein yeh do cheezein zaroori hain:
Hamesha "https://schema.org" rehga. Ye Google ko bata hai ke kaunsi vocabulary use ho rahi hai.
Entity ka type — jaise "Organization", "Person", "Product", "FAQPage". Ye hai jo change hota hai.
Schema.org pe 800+ types hain — lekin SEO ke liye mostly yeh types kaam aate hain:
Company, brand ya organization ke liye. Knowledge Panel banane mein directly help karta hai.
Individual entity ke liye. Bloggers, consultants, authors — aap bhi ek Person entity hain.
E-commerce ke liye. Price, availability, reviews — sab schema mein specify hota hai.
FAQ section ke liye. Google search results mein directly accordion expand hota hai.
Blog posts aur news articles ke liye. Author, publish date, featured image — sab declare karo.
Star ratings search results mein dikhane ke liye. CTR dramatically badh jaata hai.
Service-based businesses ke liye. Hosting, consulting, digital services — sab ke liye.
Site-wide schema. Sitelinks search box enable karne ke liye home page pe daalo.
Local businesses ke liye. Address, phone, hours — local SEO ke liye must-have.
Ab actual code dekho — ye directly copy-paste karo aur apne business ke hisab se edit karo:
Home page pe daalo. Knowledge Panel banane mein help karta hai.
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "WebHostingPK",
"alternateName": "WebHostingPK.com",
"url": "https://webhostingpk.com",
"logo": "https://webhostingpk.com/logo.png",
"foundingDate": "2017",
"founder": {
"@type": "Person",
"name": "Mubashir Hassan"
},
"description": "Pakistan ki first NVMe web hosting company. Shared hosting, VPS aur domain registration services PKR mein.",
"address": {
"@type": "PostalAddress",
"addressCountry": "PK",
"addressLocality": "Pakistan"
},
"contactPoint": {
"@type": "ContactPoint",
"contactType": "customer support",
"availableLanguage": ["Urdu", "English"]
},
"sameAs": [
"https://www.facebook.com/webhostingpk",
"https://twitter.com/webhostingpk",
"https://www.linkedin.com/company/webhostingpk"
]
}
sameAs property exactly wahi kaam karta hai jo humne Topic 02 mein seekha — multiple platforms pe same entity link karna. Google in links se entity verify karta hai aur Knowledge Panel mein show karta hai.
Us page pe daalo jahan FAQ section hai. Google search results mein directly accordion show karta hai.
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "WebHostingPK ka cheapest plan kya hai?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Basic plan sirf PKR 499/month se start hota hai — NVMe SSD, free SSL, cPanel aur 24/7 Urdu support ke saath."
}
},
{
"@type": "Question",
"name": "Kya Pakistan mein server available hai?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Haan, WebHostingPK ke servers Pakistan ke users ke liye optimized hain aur payment PKR mein accept hoti hai."
}
}
]
}
Daraz ya kisi bhi e-commerce page ke liye. Star ratings aur price Google search mein directly show hote hain.
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Samsung Galaxy S24 — Pakistan",
"brand": {
"@type": "Brand",
"name": "Samsung"
},
"description": "Samsung Galaxy S24 with Snapdragon 8 Gen 3, 6.2-inch AMOLED display. Official price in Pakistan.",
"sku": "S24-PK-2025",
"offers": {
"@type": "Offer",
"price": 289999,
"priceCurrency": "PKR",
"availability": "https://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Daraz.pk"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.7",
"reviewCount": "284"
}
}
Apni personal website ya "About" page pe daalo. Aap ek entity ho — khud ko establish karo.
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Mubashir Hassan",
"jobTitle": "Semantic SEO Expert & Serial Entrepreneur",
"url": "https://mubashirhassan.com",
"worksFor": {
"@type": "Organization",
"name": "WebHostingPK.com"
},
"knowsAbout": [
"Semantic SEO",
"GEO (Generative Engine Optimization)",
"Web Hosting Pakistan",
"WordPress Development",
"Chrome Extension Development"
],
"nationality": "Pakistani",
"sameAs": [
"https://www.youtube.com/@mubashirhassan",
"https://www.linkedin.com/in/mubashirhassan",
"https://wordpress.org/support/users/mubashirhassan/"
]
}
knowsAbout property exactly Topic 05 ka concept use kar rahi hai — ye Google ko bata rahi hai ke Mubashir Hassan kin knowledge domains mein expert hai. Ye GEO (Generative Engine Optimization) ke liye especially important hai — AI engines (ChatGPT, Perplexity) bhi isse read karte hain.
WordPress site pe schema add karne ke 3 main ways hain — sabse easy se sabse advanced tak:
Rank Math automatically bahut sare schema types handle karta hai — Article, FAQ, Product, Person sab. Settings → Schema → Add Schema Type. Free version mein bhi kaafi schema types available hain. WebHostingPK.com ke liye yahi best option hai.
Yoast premium mein Organization aur Person schema automatically generate hoti hai. Free version mein basic structured data hai lekin limited. Rank Math is comparison mein zyada features free mein deta hai.
Jab specific schema chahiye jo koi plugin nahi karta. wp_head action hook use karo aur JSON-LD directly <head> mein inject karo. Advanced users ke liye — but full control milta hai.
// functions.php mein yeh add karo function webhostingpk_organization_schema() { if ( is_home() || is_front_page() ) { $schema = [ '@context' => 'https://schema.org', '@type' => 'Organization', 'name' => 'WebHostingPK', 'url' => 'https://webhostingpk.com', 'foundingDate' => '2017', ]; echo '<script type="application/ld+json">' . wp_json_encode( $schema ) . '</script>'; } } add_action( 'wp_head', 'webhostingpk_organization_schema' );
Schema add karne ke baad hamesha test karo. Galat schema se koi faida nahi — aur kabhi kabhi Google penalty bhi de sakta hai agar schema aur actual page content match na karein.
Official Google tool. Page URL paste karo ya schema code directly paste karo. Batata hai ke kaunse rich snippets eligible hain.
search.google.com/test/rich-results
Official schema.org validator. JSON-LD errors aur warnings show karta hai. Typos aur missing required properties catch karta hai.
validator.schema.org
Common Schema Mistakes — Avoid Karo
Ab poora circle complete karte hain. Topic 03 mein EAV Model (Entity → Attribute → Value) seekha tha. Schema markup exactly usi concept ka machine-readable implementation hai:
EAV model ko samajh liya — schema automatically zyada aasaan lagta hai. Dono same cheez hain — ek human ke liye, ek machine ke liye.
Sabse pehle apni site ka basic identity declare karo. Organization hai toh Organization schema, personal blog hai toh Person schema. Rank Math se 5 minutes mein ho jaata hai.
Author, publish date, modified date, featured image — sab declare karo. Google News aur Discover ke liye bhi important hai. Rank Math automatically handle karta hai.
Jis bhi page pe FAQ section hai — FAQPage schema add karo. Direct search results mein accordion expand hona = massive CTR boost.
Hosting plans, consulting services, freelance services — har service page pe Service schema. Price aur offer information include karo jahan possible ho.
Rich Results Test se verify karo. Google Search Console mein "Enhancements" section check karo — schema errors wahan show hote hain. Monthly audit karo.
Aap ne Semantic SEO ka full foundation cover kar liya — Lexical vs Semantic, Entity Anatomy, EAV Model, Triples, Knowledge Domains, aur Schema Markup. Ab implementation time hai.