{"id":246,"date":"2014-10-11T01:58:48","date_gmt":"2014-10-10T20:58:48","guid":{"rendered":"https:\/\/ahmadawais.com\/?p=246"},"modified":"2015-08-25T17:49:32","modified_gmt":"2015-08-25T12:49:32","slug":"code-first-shortcode-wordpress","status":"publish","type":"post","link":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/","title":{"rendered":"Code Your First Shortcode in WordPress"},"content":{"rendered":"<p><a href=\"http:\/\/codex.wordpress.org\/Shortcode_API\" target=\"_blank\">Shortcode API<\/a> in WordPress is fun. It helps you create small tags to address a\u00a0chunk of code. All you do is write some [tag] and it returns the HTML\/CSS\/PHP code which you have saved inside it. Shortcodes can be used both in the Visual &amp; the Text tab of your post\/page editor. Let&#8217;s build a basic shortcode.\u00a0Building shortcodes is fun.\u00a0A\u00a0beginner can easily code a shortcode in under\u00a0one minute. Shortcodes are based upon a philosophy called DRY i.e. Don&#8217;t Repeat Yourself. E.g. I link [aboutme] page in my blog posts a lot. Same is the case with [contact] page link. Instead of writing these links each and every time, I have created shortcodes to help me optimize my workflow.<\/p>\n<h2 id=\"coding-a-shortcode-in-wordpress\">\u00a0Coding a Shortcode in WordPress<a href=\"#coding-a-shortcode-in-wordpress\" class=\"heading-link\">#<\/a><\/h2>\n<p>The algorithm of using shortcode API in WordPress is quite a simple one. All you have to do is write a function, return something and register a tag, which is then later used to render the shortcode. Let&#8217;s take an easy example;<\/p>\n<p>I am going to create a basic shortcode which will help me in linking to my [aboutme] page in form of a shortcode [ aa_me]. So, I registered a function <strong>aa_me_shortcode()<\/strong> which is returning some HTML code(the code between <strong>return&#8217;<\/strong>HTML\/CSS_CODE<strong>&#8216;;<\/strong>). After that <strong>add_shortcode<\/strong>() function is registering [aa_me] against the same <strong>aa_me_shortcode()<\/strong> function.<\/p>\n<p>Modify this code, and paste it inside your theme&#8217;s <strong>functions.php<\/strong> file. At the very end before the closing PHP tag i.e. ?&gt;. Don&#8217;t copy the &lt;?php ?&gt; tags from the code.<br \/>\n<script src=\"https:\/\/gist.github.com\/ahmadawais\/a32172c85b308232ce63.js\"><\/script>After saving the file go to the editor and type [aa_me] to render the shortcode. That&#8217;s about it. Enjoy building awesome shortcodes. <\/p>\n<h2 id=\"two-more-shortcodes\">Two More Shortcodes<a href=\"#two-more-shortcodes\" class=\"heading-link\">#<\/a><\/h2>\n<p>I have coded two more shortcodes for you people. One is for custom placement of Adsense or any other ads code. Other one hides the content inside it from users who are not logged in. Usage examples are given inside the code in a commented form.<script src=\"https:\/\/gist.github.com\/ahmadawais\/c50bfebdbc7aef0006bf.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shortcode API in WordPress is fun. It helps you create small tags to address a\u00a0chunk of code. All you do is write some [tag] and it returns the HTML\/CSS\/PHP code which you have saved inside it. Shortcodes can be used both in the Visual &amp; the Text tab of your post\/page editor. Let&#8217;s build a basic shortcode.\u00a0Building shortcodes is fun.\u00a0A\u00a0beginner can easily code a shortcode in under\u00a0one minute. Shortcodes are based upon a philosophy called DRY i.e. Don&#8217;t Repeat Yourself. E.g. I link [aboutme] page in my blog posts a lot. Same is the case with [contact] page link. Instead [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":250,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[9,10],"tags":[65],"class_list":["post-246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-wordpress","tag-code-a-shortcode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Code Your First Shortcode in WordPress<\/title>\n<meta name=\"description\" content=\"Shortcode API in WordPress is epic fun. Learn from Ahmad Awais how to code a shortcode in WordPress within 60 seconds. Yes! It&#039;s that easy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Code Your First Shortcode in WordPress\" \/>\n<meta property=\"og:description\" content=\"Shortcode API in WordPress is epic fun. Learn from Ahmad Awais how to code a shortcode in WordPress within 60 seconds. Yes! It&#039;s that easy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahmad Awais\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-10T20:58:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-25T12:49:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ahmad Awais\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:site\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ahmad Awais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/\"},\"author\":{\"name\":\"Ahmad Awais\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"headline\":\"Code Your First Shortcode in WordPress\",\"datePublished\":\"2014-10-10T20:58:48+00:00\",\"dateModified\":\"2015-08-25T12:49:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/\"},\"wordCount\":355,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/Code-your-first-Shortcode-in-WordPress.png\",\"keywords\":[\"code a shortcode\"],\"articleSection\":[\"Tutorials\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/\",\"name\":\"Code Your First Shortcode in WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/Code-your-first-Shortcode-in-WordPress.png\",\"datePublished\":\"2014-10-10T20:58:48+00:00\",\"dateModified\":\"2015-08-25T12:49:32+00:00\",\"description\":\"Shortcode API in WordPress is epic fun. Learn from Ahmad Awais how to code a shortcode in WordPress within 60 seconds. Yes! It's that easy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/Code-your-first-Shortcode-in-WordPress.png\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/Code-your-first-Shortcode-in-WordPress.png\",\"width\":800,\"height\":600,\"caption\":\"Code your first Shortcode in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/code-first-shortcode-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ahmadawais.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code Your First Shortcode in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/\",\"name\":\"Ahmad Awais\",\"description\":\"Founder &amp; CEO of Command Code | Google Developers Advisory Board (gDAB) founding member\",\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ahmadawais.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\",\"name\":\"Ahmad Awais\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"width\":2299,\"height\":1705,\"caption\":\"Ahmad Awais\"},\"logo\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\"},\"description\":\"Founder & CEO of Command Code, the most used coding agent for open models. NASA Ingenuity Mars Helicopter open source contributor, 6\u00d7 GitHub Star, Google Developers Advisory Board founding member, and angel investor.\",\"sameAs\":[\"https:\\\/\\\/AhmadAwais.com\\\/\",\"https:\\\/\\\/facebook.com\\\/AhmadAwais\",\"https:\\\/\\\/instagram.com\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/x.com\\\/MrAhmadAwais\",\"https:\\\/\\\/youtube.com\\\/AhmadAwais\",\"https:\\\/\\\/github.com\\\/ahmadawais\",\"https:\\\/\\\/www.youtube.com\\\/AhmadAwais\",\"https:\\\/\\\/bsky.app\\\/profile\\\/ahmadawais.com\",\"https:\\\/\\\/commandcode.ai\"],\"jobTitle\":\"Founder & CEO\",\"worksFor\":{\"@type\":\"Organization\",\"name\":\"Command Code\",\"url\":\"https:\\\/\\\/commandcode.ai\"},\"award\":[\"NASA Ingenuity Mars Helicopter open source contributor\",\"6\u00d7 GitHub Stars (one of the first 8 Gold Stars)\",\"#1 trending JavaScript developer on GitHub\",\"Best Speaker, AI Engineer World\u2019s Fair\",\"MIT Media Lab & Automattic Open Source Design Award\",\"MongoDB Innovation Award\",\"6\u00d7 Google Developer Expert\",\"6\u00d7 Microsoft MVP\"],\"memberOf\":[{\"@type\":\"Organization\",\"name\":\"Google Developers Advisory Board\"},{\"@type\":\"Organization\",\"name\":\"OpenAPI Initiative Business Governing Board, Linux Foundation\"},{\"@type\":\"Organization\",\"name\":\"SF DevNetwork AI\\\/ML Advisory Board\"}],\"alumniOf\":{\"@type\":\"CollegeOrUniversity\",\"name\":\"University of Engineering and Technology, Lahore\"},\"knowsAbout\":[\"AI coding agents\",\"Developer tools\",\"Open source\",\"Developer relations\",\"TypeScript\",\"Node.js\",\"CLI\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Code Your First Shortcode in WordPress","description":"Shortcode API in WordPress is epic fun. Learn from Ahmad Awais how to code a shortcode in WordPress within 60 seconds. Yes! It's that easy.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Code Your First Shortcode in WordPress","og_description":"Shortcode API in WordPress is epic fun. Learn from Ahmad Awais how to code a shortcode in WordPress within 60 seconds. Yes! It's that easy.","og_url":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/","og_site_name":"Ahmad Awais","article_publisher":"https:\/\/facebook.com\/AhmadAwais","article_author":"https:\/\/facebook.com\/AhmadAwais","article_published_time":"2014-10-10T20:58:48+00:00","article_modified_time":"2015-08-25T12:49:32+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png","type":"image\/png"}],"author":"Ahmad Awais","twitter_card":"summary_large_image","twitter_creator":"@MrAhmadAwais","twitter_site":"@MrAhmadAwais","twitter_misc":{"Written by":"Ahmad Awais","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#article","isPartOf":{"@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/"},"author":{"name":"Ahmad Awais","@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"headline":"Code Your First Shortcode in WordPress","datePublished":"2014-10-10T20:58:48+00:00","dateModified":"2015-08-25T12:49:32+00:00","mainEntityOfPage":{"@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/"},"wordCount":355,"commentCount":2,"publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"image":{"@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png","keywords":["code a shortcode"],"articleSection":["Tutorials","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/","url":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/","name":"Code Your First Shortcode in WordPress","isPartOf":{"@id":"https:\/\/ahmadawais.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png","datePublished":"2014-10-10T20:58:48+00:00","dateModified":"2015-08-25T12:49:32+00:00","description":"Shortcode API in WordPress is epic fun. Learn from Ahmad Awais how to code a shortcode in WordPress within 60 seconds. Yes! It's that easy.","breadcrumb":{"@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#primaryimage","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png","width":800,"height":600,"caption":"Code your first Shortcode in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/ahmadawais.com\/code-first-shortcode-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ahmadawais.com\/"},{"@type":"ListItem","position":2,"name":"Code Your First Shortcode in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/ahmadawais.com\/#website","url":"https:\/\/ahmadawais.com\/","name":"Ahmad Awais","description":"Founder &amp; CEO of Command Code | Google Developers Advisory Board (gDAB) founding member","publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ahmadawais.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b","name":"Ahmad Awais","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","width":2299,"height":1705,"caption":"Ahmad Awais"},"logo":{"@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg"},"description":"Founder & CEO of Command Code, the most used coding agent for open models. NASA Ingenuity Mars Helicopter open source contributor, 6\u00d7 GitHub Star, Google Developers Advisory Board founding member, and angel investor.","sameAs":["https:\/\/AhmadAwais.com\/","https:\/\/facebook.com\/AhmadAwais","https:\/\/instagram.com\/MrAhmadAwais\/","https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/","https:\/\/x.com\/MrAhmadAwais","https:\/\/youtube.com\/AhmadAwais","https:\/\/github.com\/ahmadawais","https:\/\/www.youtube.com\/AhmadAwais","https:\/\/bsky.app\/profile\/ahmadawais.com","https:\/\/commandcode.ai"],"jobTitle":"Founder & CEO","worksFor":{"@type":"Organization","name":"Command Code","url":"https:\/\/commandcode.ai"},"award":["NASA Ingenuity Mars Helicopter open source contributor","6\u00d7 GitHub Stars (one of the first 8 Gold Stars)","#1 trending JavaScript developer on GitHub","Best Speaker, AI Engineer World\u2019s Fair","MIT Media Lab & Automattic Open Source Design Award","MongoDB Innovation Award","6\u00d7 Google Developer Expert","6\u00d7 Microsoft MVP"],"memberOf":[{"@type":"Organization","name":"Google Developers Advisory Board"},{"@type":"Organization","name":"OpenAPI Initiative Business Governing Board, Linux Foundation"},{"@type":"Organization","name":"SF DevNetwork AI\/ML Advisory Board"}],"alumniOf":{"@type":"CollegeOrUniversity","name":"University of Engineering and Technology, Lahore"},"knowsAbout":["AI coding agents","Developer tools","Open source","Developer relations","TypeScript","Node.js","CLI"]}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2014\/10\/Code-your-first-Shortcode-in-WordPress.png","_links":{"self":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/comments?post=246"}],"version-history":[{"count":0,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/246\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media\/250"}],"wp:attachment":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}