{"id":1298,"date":"2016-01-11T05:01:39","date_gmt":"2016-01-11T05:01:39","guid":{"rendered":"http:\/\/people.utm.my\/sharulhafiz\/?p=1298"},"modified":"2016-01-11T05:01:39","modified_gmt":"2016-01-11T05:01:39","slug":"using-instead-of-jquery-in-wordpress-digging-into-wordpress","status":"publish","type":"post","link":"https:\/\/people.utm.my\/sharulhafiz\/using-instead-of-jquery-in-wordpress-digging-into-wordpress\/","title":{"rendered":"Using \u2018$\u2019 instead of \u2018jQuery\u2019 in WordPress | Digging Into WordPress"},"content":{"rendered":"<blockquote><p>WordPress ships with jQuery (for longevity&#8217;s sake, as I write this WordPress is v3.2.1). To use jQuery in your plugins and themes &#8220;The Right Way&#8221; all you n<\/p><\/blockquote>\n<p>Solution for unrecognized $ sign when trying to use jQuery<\/p>\n<p><code>jQuery(document).ready(function( $ ) {<\/code><\/p>\n<p>\/\/ $ Works! You can test it with next line if you like<br \/>\n\/\/ console.log($);<\/p>\n<p>});<\/p>\n<p>Source: <em><a href=\"https:\/\/digwp.com\/2011\/09\/using-instead-of-jquery-in-wordpress\/\">Using \u2018$\u2019 instead of \u2018jQuery\u2019 in WordPress | Digging Into WordPress<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress ships with jQuery (for longevity&#8217;s sake, as I write this WordPress is v3.2.1). To use jQuery in your plugins and themes &#8220;The Right Way&#8221; all you n Solution for unrecognized $ sign when trying to use jQuery jQuery(document).ready(function( $ ) { \/\/ $ Works! You can test it with next line if you like [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7,10],"tags":[],"class_list":["post-1298","post","type-post","status-publish","format-standard","hentry","category-sample-code","category-troubleshooting"],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5KVXr-kW","_links":{"self":[{"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/posts\/1298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/comments?post=1298"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/posts\/1298\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/media?parent=1298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/categories?post=1298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/sharulhafiz\/wp-json\/wp\/v2\/tags?post=1298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}