{"id":8715678,"date":"2017-01-30T13:20:56","date_gmt":"2017-01-30T13:20:56","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/get_query_var-or-_get\/"},"modified":"2017-01-30T13:20:56","modified_gmt":"2017-01-30T13:20:56","slug":"get_query_var-or-_get","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/get_query_var-or-_get\/","title":{"rendered":"get_query_var or $_GET"},"content":{"rendered":"<p>I&#8217;m a bit confused about this and I&#8217;ve not been able to find a definitive answer.<\/p>\n<p>What is the best practice in regards to front end URL variables?<\/p>\n<p>Can I grab using $_GET or should I be adding variables to WordPress with add_query_var and retrieving with get_query_var?<\/p>\n","protected":false},"template":"","class_list":["post-8715678","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8715678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8715678\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8715678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}