{"id":2899,"date":"2022-08-30T15:28:42","date_gmt":"2022-08-30T15:28:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/10\/how-to-query-a-custom-post-type-with-a-taxonomy-filter-but-display-post-type-archive-page-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:28:42","modified_gmt":"2022-08-30T15:28:42","slug":"how-to-query-a-custom-post-type-with-a-taxonomy-filter-but-display-post-type-archive-page-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-query-a-custom-post-type-with-a-taxonomy-filter-but-display-post-type-archive-page-collection-of-common-programming-errors\/","title":{"rendered":"How to query a custom post type with a taxonomy filter but display post type archive page?-Collection of common programming errors"},"content":{"rendered":"<p>The simplest way is, in all honesty, to hook into <code>wp_title<\/code> and change things, and just be aware that the warnings are there but not showing in production (because you&#8217;ve property configured your server).<\/p>\n<p>What follows is a kind of hacky solution.<\/p>\n<p>If you take a look at <code>get_queried_object<\/code>&#8230;<\/p>\n<p id=\"rop\"><small>Originally posted 2014-03-10 12:19:35. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>The simplest way is, in all honesty, to hook into wp_title and change things, and just be aware that the warnings are there but not showing in production (because you&#8217;ve property configured your server). What follows is a kind of hacky solution. If you take a look at get_queried_object&#8230; Originally posted 2014-03-10 12:19:35.<\/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-2899","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2899","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=2899"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2899\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}