{"id":1064,"date":"2023-04-14T09:48:00","date_gmt":"2023-04-14T09:48:00","guid":{"rendered":"https:\/\/thoth.dk\/?p=1064"},"modified":"2026-02-21T20:16:31","modified_gmt":"2026-02-21T20:16:31","slug":"categories-and-custom-query-blocks","status":"publish","type":"post","link":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/","title":{"rendered":"Categories and Custom Query Blocks"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Categories<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can give structure to a <em>blog<\/em> if you remember to add your Posts to one or more categories. Here you have to analyze your content. Which categories will be relevant in this case? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Categories can be anything from:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Language (categories: English, Danish, Slovakian, German, Chinese)<\/li>\n\n\n\n<li>Topics (categories: fashion, kitesurfing, hiking)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To the right in the Post settings you can add any post to a category. If the category does not exist you can create it too:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a6d714a1c29f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a6d714a1c29f\" class=\"wp-block-image size-medium has-custom-border wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"131\" height=\"300\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-11.54.22-131x300.png\" alt=\"\" class=\"wp-image-1065\" style=\"border-width:2px\" srcset=\"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-11.54.22-131x300.png 131w, https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-11.54.22-448x1024.png 448w, https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-11.54.22.png 540w\" sizes=\"auto, (max-width: 131px) 100vw, 131px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this case you can see a few language categories. This post is in the English category. You may want more categories than this.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Categories and the Menus<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the menus you can link to a category. The category is presented in the <strong>Archive<\/strong> template. So if you want to change the looks of the category page, that&#8217;s the template you&#8217;re looking for.<\/p>\n\n\n<nav class=\"is-responsive is-vertical wp-block-navigation is-layout-flex wp-container-core-navigation-is-layout-831b2db5 wp-block-navigation-is-layout-flex\" \n\t\t data-wp-interactive=\"core\/navigation\" data-wp-context='{\"overlayOpenedBy\":{\"click\":false,\"hover\":false,\"focus\":false},\"type\":\"overlay\",\"roleAttribute\":\"\",\"ariaLabel\":\"Menu\"}'><button aria-haspopup=\"dialog\" aria-label=\"\u00c5bn menu\" class=\"wp-block-navigation__responsive-container-open\" \n\t\t\t\tdata-wp-on--click=\"actions.openMenuOnClick\"\n\t\t\t\tdata-wp-on--keydown=\"actions.handleMenuKeydown\"\n\t\t\t><svg width=\"24\" height=\"24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M4 7.5h16v1.5H4z\"><\/path><path d=\"M4 15h16v1.5H4z\"><\/path><\/svg><\/button>\n\t\t\t\t<div class=\"wp-block-navigation__responsive-container\"  id=\"modal-1\" \n\t\t\t\tdata-wp-class--has-modal-open=\"state.isMenuOpen\"\n\t\t\t\tdata-wp-class--is-menu-open=\"state.isMenuOpen\"\n\t\t\t\tdata-wp-watch=\"callbacks.initMenu\"\n\t\t\t\tdata-wp-on--keydown=\"actions.handleMenuKeydown\"\n\t\t\t\tdata-wp-on--focusout=\"actions.handleMenuFocusout\"\n\t\t\t\ttabindex=\"-1\"\n\t\t\t>\n\t\t\t\t\t<div class=\"wp-block-navigation__responsive-close\" tabindex=\"-1\">\n\t\t\t\t\t\t<div class=\"wp-block-navigation__responsive-dialog\" \n\t\t\t\tdata-wp-bind--aria-modal=\"state.ariaModal\"\n\t\t\t\tdata-wp-bind--aria-label=\"state.ariaLabel\"\n\t\t\t\tdata-wp-bind--role=\"state.roleAttribute\"\n\t\t\t>\n\t\t\t\t\t\t\t<button aria-label=\"Luk menu\" class=\"wp-block-navigation__responsive-container-close\" \n\t\t\t\tdata-wp-on--click=\"actions.closeMenuOnClick\"\n\t\t\t><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" aria-hidden=\"true\" focusable=\"false\"><path d=\"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z\"><\/path><\/svg><\/button>\n\t\t\t\t\t\t\t<div class=\"wp-block-navigation__responsive-container-content\" \n\t\t\t\tdata-wp-watch=\"callbacks.focusFirstElement\"\n\t\t\t id=\"modal-1-content\">\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div><\/nav>\n\n\n<h2 class=\"wp-block-heading\">How to present a category in a post, page or template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can present categories in several ways. Explore the options in Gutenberg.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Categories List<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Will list all categories:<\/p>\n\n\n<ul class=\"wp-block-categories-list wp-block-categories-taxonomy-category wp-block-categories\">\t<li class=\"cat-item cat-item-114\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/artificial-intelligence\/\">Artificial Intelligence<\/a> (2)\n<\/li>\n\t<li class=\"cat-item cat-item-243\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/brugertest\/\">Brugertest<\/a> (1)\n<\/li>\n\t<li class=\"cat-item cat-item-144\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/ecommerce\/\">eCommerce<\/a> (5)\n<\/li>\n\t<li class=\"cat-item cat-item-42\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/faq\/\">FAQ<\/a> (5)\n<\/li>\n\t<li class=\"cat-item cat-item-232\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/jordbrugsteknik\/\">Jordbrugsteknik<\/a> (10)\n<\/li>\n\t<li class=\"cat-item cat-item-31\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/multimediedesign\/\">Multimediedesign<\/a> (57)\n<\/li>\n\t<li class=\"cat-item cat-item-37\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/portfolio\/\">Portfolio<\/a> (5)\n<\/li>\n\t<li class=\"cat-item cat-item-24\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/programming\/\">Programming<\/a> (23)\n<\/li>\n\t<li class=\"cat-item cat-item-23\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/tutorials\/\">Tutorials<\/a> (47)\n<\/li>\n\t<li class=\"cat-item cat-item-242\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/ux\/\">UX<\/a> (1)\n<\/li>\n\t<li class=\"cat-item cat-item-113\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/video\/\">Video<\/a> (7)\n<\/li>\n\t<li class=\"cat-item cat-item-183\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/jordbrugsteknik\/webudvikling\/\">Webudvikling<\/a> (13)\n<\/li>\n\t<li class=\"cat-item cat-item-173\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/wordpress\/\">WordPress<\/a> (12)\n<\/li>\n\t<li class=\"cat-item cat-item-21\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/dk\/\">\ud83c\udde9\ud83c\uddf0 Danske Tutorials<\/a> (58)\n<\/li>\n\t<li class=\"cat-item cat-item-20\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/eng\/\">\ud83c\uddec\ud83c\udde7 English Tutorials<\/a> (21)\n<\/li>\n<\/ul>\n\n<ul class=\"wp-block-categories-list wp-block-categories-taxonomy-category wp-block-categories\">\t<li class=\"cat-item cat-item-114\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/artificial-intelligence\/\">Artificial Intelligence<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-243\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/brugertest\/\">Brugertest<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-144\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/ecommerce\/\">eCommerce<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-42\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/faq\/\">FAQ<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-232\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/jordbrugsteknik\/\">Jordbrugsteknik<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-31\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/multimediedesign\/\">Multimediedesign<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-37\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/portfolio\/\">Portfolio<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-24\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/programming\/\">Programming<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-23\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/tutorials\/\">Tutorials<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-242\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/ux\/\">UX<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-113\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/video\/\">Video<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-183\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/jordbrugsteknik\/webudvikling\/\">Webudvikling<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-173\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/wordpress\/\">WordPress<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-21\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/dk\/\">\ud83c\udde9\ud83c\uddf0 Danske Tutorials<\/a>\n<\/li>\n\t<li class=\"cat-item cat-item-20\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/eng\/\">\ud83c\uddec\ud83c\udde7 English Tutorials<\/a>\n<\/li>\n<\/ul>\n\n\n<h3 class=\"wp-block-heading\">Categories<\/h3>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group alignwide is-nowrap is-layout-flex wp-container-core-group-is-layout-3a88641f wp-block-group-is-layout-flex\">\n<p class=\"wp-block-paragraph\">Will display the presnt category, as you see below here:<\/p>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"taxonomy-category wp-block-post-terms\"><a href=\"https:\/\/thoth.dk\/index.php\/category\/multimediedesign\/\" rel=\"tag\">Multimediedesign<\/a><span class=\"wp-block-post-terms__separator\">, <\/span><a href=\"https:\/\/thoth.dk\/index.php\/category\/eng\/\" rel=\"tag\">\ud83c\uddec\ud83c\udde7 English Tutorials<\/a><\/div><\/div>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Query Loop<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add a <strong>Filter<\/strong>, and select <strong>Taxonomies<\/strong>. Click on the <strong>+<\/strong> and select <strong>categories<\/strong>.  Now write the category you want to see. In this case the category below is &#8220;English&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this way you can filter the content by one or more categories:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a6d714a1d5b6&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a6d714a1d5b6\" class=\"wp-block-image size-medium has-custom-border wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"245\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-12.18.23-300x245.png\" alt=\"\" class=\"wp-image-1071\" style=\"border-width:2px\" srcset=\"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-12.18.23-300x245.png 300w, https:\/\/thoth.dk\/wp-content\/uploads\/2023\/04\/Skaermbillede-2023-04-14-kl.-12.18.23.png 568w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Sample Query Loop<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Category: English<\/strong><\/p>\n\n\n\n<div class=\"wp-block-group alignwide has-border-color has-accent-3-border-color has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-6c352c12 wp-block-group-is-layout-constrained\" style=\"border-width:1px;background:linear-gradient(135deg,rgb(13,13,1) 70%,rgb(182,227,212) 83%,rgb(51,167,181) 100%);padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)\">\n<div class=\"wp-block-query alignwide is-layout-flow wp-block-query-is-layout-flow\"><ul style=\"background-color:#70115f\" class=\"has-link-color wp-elements-21b45ec6ff5ab56de5f713ab725669f9 wp-block-post-template has-text-color has-base-color has-background is-layout-flow wp-block-post-template-is-layout-flow\"><li class=\"wp-block-post post-3951 post type-post status-publish format-standard has-post-thumbnail hentry category-multimediedesign category-tutorials category-video category-eng tag-twenty-twenty-five tag-video\">\n<div style=\"padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-top:0;padding-bottom:0\" class=\"has-link-color wp-elements-e9139988b613eb808cb89a8edecb690b wp-block-post-date has-text-color has-accent-1-color wp-elements-21b45ec6ff5ab56de5f713ab725669f9\"><time datetime=\"2025-08-16T11:34:45+00:00\">16. august 2025<\/time><\/div>\n\n<h2 style=\"padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30)\" class=\"wp-block-post-title\">David Utke: Twenty twenty-five<\/h2>\n\n\n<hr class=\"wp-block-separator has-text-color has-accent-1-color has-alpha-channel-opacity has-accent-1-background-color has-background is-style-dots\" style=\"margin-top:0;margin-bottom:0\"\/>\n\n<\/li><li class=\"wp-block-post post-3393 post type-post status-publish format-standard has-post-thumbnail hentry category-tutorials category-video category-eng tag-blocks tag-marsland\">\n<div style=\"padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-top:0;padding-bottom:0\" class=\"has-link-color wp-elements-e9139988b613eb808cb89a8edecb690b wp-block-post-date has-text-color has-accent-1-color wp-elements-21b45ec6ff5ab56de5f713ab725669f9\"><time datetime=\"2025-01-19T16:21:32+00:00\">19. januar 2025<\/time><\/div>\n\n<h2 style=\"padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30)\" class=\"wp-block-post-title\">Overlapping Blocks<\/h2>\n\n\n<hr class=\"wp-block-separator has-text-color has-accent-1-color has-alpha-channel-opacity has-accent-1-background-color has-background is-style-dots\" style=\"margin-top:0;margin-bottom:0\"\/>\n\n<\/li><li class=\"wp-block-post post-3168 post type-post status-publish format-standard has-post-thumbnail hentry category-multimediedesign category-tutorials category-eng tag-elementor\">\n<div style=\"padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-top:0;padding-bottom:0\" class=\"has-link-color wp-elements-e9139988b613eb808cb89a8edecb690b wp-block-post-date has-text-color has-accent-1-color wp-elements-21b45ec6ff5ab56de5f713ab725669f9\"><time datetime=\"2024-09-24T14:28:54+00:00\">24. september 2024<\/time><\/div>\n\n<h2 style=\"padding-top:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30)\" class=\"wp-block-post-title\">How to build a website with Elementor<\/h2>\n\n\n<hr class=\"wp-block-separator has-text-color has-accent-1-color has-alpha-channel-opacity has-accent-1-background-color has-background is-style-dots\" style=\"margin-top:0;margin-bottom:0\"\/>\n\n<\/li><\/ul>\n\n<nav class=\"wp-block-query-pagination is-layout-flex wp-block-query-pagination-is-layout-flex\" aria-label=\"Sideinddeling\">\n\n\n<div class=\"wp-block-query-pagination-numbers\"><span aria-current=\"page\" class=\"page-numbers current\">1<\/span>\n<a class=\"page-numbers\" href=\"?query-15-page=2\">2<\/a>\n<a class=\"page-numbers\" href=\"?query-15-page=3\">3<\/a>\n<span class=\"page-numbers dots\">&hellip;<\/span>\n<a class=\"page-numbers\" href=\"?query-15-page=7\">7<\/a><\/div>\n\n<a href=\"\/index.php\/wp-json\/wp\/v2\/posts\/1064?query-15-page=2\" class=\"wp-block-query-pagination-next\">N\u00e6ste side<\/a>\n<\/nav>\n\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Tags<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Remember that you can add tags to a Post. Then you can filter by tags too &#8211; or even by a combination of tags and categories. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this way you can add structure to a blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Categories You can give structure to a blog if you remember to add your Posts to one or more categories. Here you have to analyze your content. Which categories will be relevant in this case? Categories can be anything from: To the right in the Post settings you can add any post to a category. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":462,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[31,20],"tags":[109,76,87,108,75],"class_list":["post-1064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-multimediedesign","category-eng","tag-categories","tag-filter","tag-filtering-content","tag-tags","tag-taxonomies"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Categories and Custom Query Blocks - Wordpress og WooCommerce<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/\" \/>\n<link rel=\"next\" href=\"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/1064?query-15-page=2\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Categories and Custom Query Blocks - Wordpress og WooCommerce\" \/>\n<meta property=\"og:description\" content=\"Categories You can give structure to a blog if you remember to add your Posts to one or more categories. Here you have to analyze your content. Which categories will be relevant in this case? Categories can be anything from: To the right in the Post settings you can add any post to a category. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/\" \/>\n<meta property=\"og:site_name\" content=\"Wordpress og WooCommerce\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-14T09:48:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-21T20:16:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/02\/cat.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Per Thykj\u00e6r Jensen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Skrevet af\" \/>\n\t<meta name=\"twitter:data1\" content=\"Per Thykj\u00e6r Jensen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimeret l\u00e6setid\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/\"},\"author\":{\"name\":\"Per Thykj\u00e6r Jensen\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/#\\\/schema\\\/person\\\/d94ae14e2a45089632b96d9f633fac06\"},\"headline\":\"Categories and Custom Query Blocks\",\"datePublished\":\"2023-04-14T09:48:00+00:00\",\"dateModified\":\"2026-02-21T20:16:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/\"},\"wordCount\":273,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/cat.jpeg\",\"keywords\":[\"categories\",\"Filter\",\"filtering content\",\"tags\",\"Taxonomies\"],\"articleSection\":[\"Multimediedesign\",\"\ud83c\uddec\ud83c\udde7 English Tutorials\"],\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/\",\"url\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/\",\"name\":\"Categories and Custom Query Blocks - Wordpress og WooCommerce\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/cat.jpeg\",\"datePublished\":\"2023-04-14T09:48:00+00:00\",\"dateModified\":\"2026-02-21T20:16:31+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/#\\\/schema\\\/person\\\/d94ae14e2a45089632b96d9f633fac06\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#breadcrumb\"},\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/cat.jpeg\",\"contentUrl\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/cat.jpeg\",\"width\":512,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2023\\\/04\\\/14\\\/categories-and-custom-query-blocks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thoth.dk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories and Custom Query Blocks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/#website\",\"url\":\"https:\\\/\\\/thoth.dk\\\/\",\"name\":\"Wordpress og WooCommerce\",\"description\":\"Syv kreative dage med WordPress og WooCommerce\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thoth.dk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"da-DK\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/#\\\/schema\\\/person\\\/d94ae14e2a45089632b96d9f633fac06\",\"name\":\"Per Thykj\u00e6r Jensen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g\",\"caption\":\"Per Thykj\u00e6r Jensen\"},\"description\":\"P\u00e5 Thoth.dk kan du finde tutorials og artikler om udvikling af websites med WordPress og online shopping med WooCommerce. Der er fokus p\u00e5 de nyeste blokbaserede temaer og metoder. Materialer og tutorials er udviklet af Per Thykj\u00e6r Jensen, lektor p\u00e5 Multimediedesigneruddannelsen ved Erhvervsakademi Aarhus.\",\"sameAs\":[\"https:\\\/\\\/thoth.dk\"],\"url\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/author\\\/per\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Categories and Custom Query Blocks - Wordpress og WooCommerce","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/","next":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/1064?query-15-page=2","og_locale":"da_DK","og_type":"article","og_title":"Categories and Custom Query Blocks - Wordpress og WooCommerce","og_description":"Categories You can give structure to a blog if you remember to add your Posts to one or more categories. Here you have to analyze your content. Which categories will be relevant in this case? Categories can be anything from: To the right in the Post settings you can add any post to a category. [&hellip;]","og_url":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/","og_site_name":"Wordpress og WooCommerce","article_published_time":"2023-04-14T09:48:00+00:00","article_modified_time":"2026-02-21T20:16:31+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/02\/cat.jpeg","type":"image\/jpeg"}],"author":"Per Thykj\u00e6r Jensen","twitter_card":"summary_large_image","twitter_misc":{"Skrevet af":"Per Thykj\u00e6r Jensen","Estimeret l\u00e6setid":"3 minutter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#article","isPartOf":{"@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/"},"author":{"name":"Per Thykj\u00e6r Jensen","@id":"https:\/\/thoth.dk\/#\/schema\/person\/d94ae14e2a45089632b96d9f633fac06"},"headline":"Categories and Custom Query Blocks","datePublished":"2023-04-14T09:48:00+00:00","dateModified":"2026-02-21T20:16:31+00:00","mainEntityOfPage":{"@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/"},"wordCount":273,"commentCount":0,"image":{"@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#primaryimage"},"thumbnailUrl":"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/02\/cat.jpeg","keywords":["categories","Filter","filtering content","tags","Taxonomies"],"articleSection":["Multimediedesign","\ud83c\uddec\ud83c\udde7 English Tutorials"],"inLanguage":"da-DK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/","url":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/","name":"Categories and Custom Query Blocks - Wordpress og WooCommerce","isPartOf":{"@id":"https:\/\/thoth.dk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#primaryimage"},"image":{"@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#primaryimage"},"thumbnailUrl":"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/02\/cat.jpeg","datePublished":"2023-04-14T09:48:00+00:00","dateModified":"2026-02-21T20:16:31+00:00","author":{"@id":"https:\/\/thoth.dk\/#\/schema\/person\/d94ae14e2a45089632b96d9f633fac06"},"breadcrumb":{"@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#breadcrumb"},"inLanguage":"da-DK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/"]}]},{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#primaryimage","url":"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/02\/cat.jpeg","contentUrl":"https:\/\/thoth.dk\/wp-content\/uploads\/2023\/02\/cat.jpeg","width":512,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/thoth.dk\/index.php\/2023\/04\/14\/categories-and-custom-query-blocks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thoth.dk\/"},{"@type":"ListItem","position":2,"name":"Categories and Custom Query Blocks"}]},{"@type":"WebSite","@id":"https:\/\/thoth.dk\/#website","url":"https:\/\/thoth.dk\/","name":"Wordpress og WooCommerce","description":"Syv kreative dage med WordPress og WooCommerce","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thoth.dk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"da-DK"},{"@type":"Person","@id":"https:\/\/thoth.dk\/#\/schema\/person\/d94ae14e2a45089632b96d9f633fac06","name":"Per Thykj\u00e6r Jensen","image":{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/secure.gravatar.com\/avatar\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g","caption":"Per Thykj\u00e6r Jensen"},"description":"P\u00e5 Thoth.dk kan du finde tutorials og artikler om udvikling af websites med WordPress og online shopping med WooCommerce. Der er fokus p\u00e5 de nyeste blokbaserede temaer og metoder. Materialer og tutorials er udviklet af Per Thykj\u00e6r Jensen, lektor p\u00e5 Multimediedesigneruddannelsen ved Erhvervsakademi Aarhus.","sameAs":["https:\/\/thoth.dk"],"url":"https:\/\/thoth.dk\/index.php\/author\/per\/"}]}},"_links":{"self":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":14,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":6710,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts\/1064\/revisions\/6710"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/media\/462"}],"wp:attachment":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}