{"id":1023654,"date":"2009-03-18T09:08:43","date_gmt":"2009-03-18T09:08:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/customkey-in-archive-template\/"},"modified":"2016-08-19T04:31:22","modified_gmt":"2016-08-19T04:31:22","slug":"customkey-in-archive-template","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/customkey-in-archive-template\/","title":{"rendered":"customkey in archive template"},"content":{"rendered":"<p>I want the template to change the customkey, to which category showen.<\/p>\n<pre><code>&lt;a href=&quot;&lt;?php\ndefine(&quot;projekttype&quot;, single_cat_title());\n   echo get_post_meta($post-&gt;ID, &quot;projekttype&quot;, true);\n?&gt;&quot;&gt;<\/code><\/pre>\n<p>Right now it outputs the category and not the costum key Ive added \ud83d\ude41<\/p>\n<p>Any help?<\/p>\n","protected":false},"template":"","class_list":["post-1023654","topic","type-topic","status-closed","hentry","topic-tag-category","topic-tag-template"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1023654","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\/1023654\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1023654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}