{"id":6437,"date":"2014-04-18T05:22:32","date_gmt":"2014-04-18T05:22:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/wordpress-how-to-query-wp_options-table-collection-of-common-programming-errors\/"},"modified":"2014-04-18T05:22:32","modified_gmt":"2014-04-18T05:22:32","slug":"wordpress-how-to-query-wp_options-table-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/wordpress-how-to-query-wp_options-table-collection-of-common-programming-errors\/","title":{"rendered":"wordpress how to query wp_options table-Collection of common programming errors"},"content":{"rendered":"<p>I need to make an SQL call to find all records in wp_options matching a select statement. How do I query the table?<\/p>\n<p>My script already has these resources called&#8230;<\/p>\n<pre><code>require_once('..\/..\/..\/wp-blog-header.php');\nrequire_once('..\/..\/..\/wp-admin\/includes\/file.php');\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I need to make an SQL call to find all records in wp_options matching a select statement. How do I query the table? My script already has these resources called&#8230; require_once(&#8216;..\/..\/..\/wp-blog-header.php&#8217;); require_once(&#8216;..\/..\/..\/wp-admin\/includes\/file.php&#8217;);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6437","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6437"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6437\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}