{"id":7394,"date":"2014-06-12T03:10:08","date_gmt":"2014-06-12T03:10:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/12\/wordpress-meta-key-search-collection-of-common-programming-errors\/"},"modified":"2014-06-12T03:10:08","modified_gmt":"2014-06-12T03:10:08","slug":"wordpress-meta-key-search-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/12\/wordpress-meta-key-search-collection-of-common-programming-errors\/","title":{"rendered":"WordPress meta key search-Collection of common programming errors"},"content":{"rendered":"<p>I have some problems with wordpress meta key relations and search parametrs. I can not get this to work:<\/p>\n<pre><code>?meta_value=Da\u017eadi&amp;id=32&amp;cp_city=Cesis\n<\/code><\/pre>\n<p>Search results is only filtering by meta_value, not of cp_city and meta_value.<\/p>\n<p>cp_city is also meta key value.<\/p>\n<p>But this call is working and filtering:<\/p>\n<pre><code>?meta_value=Pardod&amp;id=32\n<\/code><\/pre>\n<p>I need to filter by two or three parametrs.<\/p>\n<p>Here is functions code to filter.<\/p>\n<pre><code><br \/><br \/><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have some problems with wordpress meta key relations and search parametrs. I can not get this to work: ?meta_value=Da\u017eadi&amp;id=32&amp;cp_city=Cesis Search results is only filtering by meta_value, not of cp_city and meta_value. cp_city is also meta key value. But this call is working and filtering: ?meta_value=Pardod&amp;id=32 I need to filter by two or three parametrs. [&hellip;]<\/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-7394","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7394","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=7394"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7394\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}