{"id":4963,"date":"2012-01-12T22:42:23","date_gmt":"2012-01-12T22:42:23","guid":{"rendered":"http:\/\/blog.widmann.org.uk\/?p=4963"},"modified":"2012-01-12T22:42:23","modified_gmt":"2012-01-12T22:42:23","slug":"wordpress-multiple-categories-an-undocumented-feature","status":"publish","type":"post","link":"https:\/\/widmanniana.org\/blog\/wordpress-multiple-categories-an-undocumented-feature\/","title":{"rendered":"Multiple categories in WordPress \u2013 an undocumented feature?"},"content":{"rendered":"<div style=\"float: right; margin-left: 10px; margin-bottom: 10px;\">\n<a href=\"http:\/\/www.flickr.com\/photos\/gesamtbild\/3203864528\/\" title=\"photo sharing\"><img decoding=\"async\" src=\"http:\/\/farm4.staticflickr.com\/3439\/3203864528_054c8a1ae7_m.jpg\" alt=\"\" style=\"border: solid 2px #000000;\" \/><\/a><br \/>\n<span style=\"font-size: 0.9em; margin-top: 0px;\"><br \/>\n<a href=\"http:\/\/www.flickr.com\/photos\/gesamtbild\/3203864528\/\">WordPress icon for Fluid.app \u2013 Wood Series<\/a><br \/>\nOriginally uploaded by <a href=\"http:\/\/www.flickr.com\/photos\/gesamtbild\/\">gesamtbild<\/a><br \/>\n<\/span>\n<\/div>\n<p>For a long time, I&#8217;ve been looking for a way to find postings that are filed under two or more categories in WordPress.  It&#8217;s very easy to click on any of the categories in the column on the far left to find all blog postings within this category, but how do you find all blog postings about linguistics in Danish, or the blog postings I&#8217;ve written in English about Scottish politics?<\/p>\n<p>I assumed there was no easy way to do it.  I read the documentation I could find, I searched through lots of of WordPress plugins, but to no avail.<\/p>\n<p>Today I then suddenly got the idea to see whether they had implemented it anyway, so I decided to try the different URLs that would make sense to me as a programmer.<\/p>\n<p>My first instinct was to try a \u2018+\u2019 sign, and much to my surprise it actually worked!<\/p>\n<p>For instance, <a href=\"https:\/\/widmanniana.org\/blog\/category\/fooddrink+es\/\">category\/fooddrink+es<\/a> gives you food and drink in Spanish, <a href=\"https:\/\/widmanniana.org\/blog\/category\/linguistics+da\/\">linguistics+da<\/a> gives you linguistics in Danish, and <a href=\"https:\/\/widmanniana.org\/blog\/category\/politics+en+scotland\/\">politics+en+scotland<\/a> gives you Scottish politics in English.<\/p>\n<p>You even seem to be able to get a feed, such as <a href=\"https:\/\/widmanniana.org\/blog\/category\/kids+linguistics\/feed\/\">category\/kids+linguistics\/feed<\/a> for the RSS feed for kids &amp; linguistics.<\/p>\n<p>The only problem seems to be that the generated heading is wrong &ndash; I&#8217;ll need to have a look at that to see whether it&#8217;s something I can fix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress icon for Fluid.app \u2013 Wood Series Originally uploaded by gesamtbild For a long time, I&#8217;ve been looking for a way to find postings that are filed under two or more categories in WordPress. It&#8217;s very easy to click on any of the categories in the column on the far left to find all blog postings within this category, but how do you find all blog postings about linguistics in Danish, or the blog postings I&#8217;ve written in English about Scottish politics? I assumed there was no [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90,159,151],"tags":[],"class_list":["post-4963","post","type-post","status-publish","format-standard","hentry","category-blogging","category-en","category-web"],"_links":{"self":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts\/4963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/comments?post=4963"}],"version-history":[{"count":0,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/posts\/4963\/revisions"}],"wp:attachment":[{"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/media?parent=4963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/categories?post=4963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/widmanniana.org\/blog\/wp-json\/wp\/v2\/tags?post=4963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}