{"id":51,"date":"2022-08-30T17:04:29","date_gmt":"2022-08-30T17:04:29","guid":{"rendered":"http:\/\/osbyte.net\/?p=51"},"modified":"2022-08-30T17:04:30","modified_gmt":"2022-08-30T17:04:30","slug":"jquery-and-wordpress","status":"publish","type":"post","link":"https:\/\/osbyte.net\/?p=51","title":{"rendered":"jQuery and WordPress"},"content":{"rendered":"\n<p>Copy\/pasted some cool, jQuery-laden javascript code into a WordPress post, then had the browser complain at you because it didn&#8217;t know what $ is?<\/p>\n\n\n\n<p>Yeah, me too.<\/p>\n\n\n\n<p>But don&#8217;t panic about having to install jQuery somewhere, because it&#8217;s already there. It&#8217;s running in a <a href=\"https:\/\/learn.jquery.com\/using-jquery-core\/avoid-conflicts-other-libraries\/\">non-conflict<\/a> mode, so all you have to do is use &#8216;jQuery&#8217; instead of &#8216;$&#8217;. Simples.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Copy\/pasted some cool, jQuery-laden javascript code into a WordPress post, then had the browser complain at you because it didn&#8217;t know what $ is? Yeah, me too. But don&#8217;t panic about having to install jQuery somewhere, because it&#8217;s already there. It&#8217;s running in a non-conflict mode, so all you have to do is use &#8216;jQuery&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":52,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/osbyte.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":1,"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":53,"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions\/53"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/osbyte.net\/index.php?rest_route=\/wp\/v2\/media\/52"}],"wp:attachment":[{"href":"https:\/\/osbyte.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osbyte.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osbyte.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}