{"id":37849,"date":"2024-10-29T13:20:28","date_gmt":"2024-10-29T17:20:28","guid":{"rendered":"https:\/\/university-communications.ncsu.edu\/documentation\/?post_type=reference-article&#038;p=37849"},"modified":"2026-03-04T12:34:13","modified_gmt":"2026-03-04T17:34:13","slug":"resources-post-type","status":"publish","type":"reference-article","link":"https:\/\/university-communications.ncsu.edu\/documentation\/reference-article\/resources-post-type\/","title":{"rendered":"Resources Post Type"},"content":{"rendered":"\n<p>This feature of the NC State Theme allows content maintainers to create filterable and searchable databases. It is the most generic of all the post types included within the NC State Theme.<\/p>\n\n\n\n<p>Primarily thought of as a way to list available resources, the post type is very flexible and can be renamed. This allows a content maintainer to <a href=\"#renaming\" data-type=\"internal\" data-id=\"#renaming\">choose whatever terminology<\/a> best describes the content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-type.jpg\" data-fullsize=\"600x588\" data-zoom=\"true\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"588\" src=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-type.jpg\" alt=\"Screenshot of front-end of resources post type\" class=\"wp-image-38138\" srcset=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-type.jpg 600w, https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-type-300x294.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption class=\"wp-element-caption\">Example of the Resources post type renamed to &#8220;Blocks&#8221;<\/figcaption><\/figure>\n\n\n<div class=\"is-text wp-block-ncst-buttons\">\n    \n<div class=\"is-style-secondary wp-block-ncst-button\">\n      <a\n        class=\"ncst-block__button-link btn\"\n        href=\"https:\/\/university-communications.ncsu.edu\/documentation\/blocks\/\"\n        data-ncst-lightbox=\"false\"\n                      >\n                  <span class=\"text\">Example of Resources Post Type<\/span><span class=\"arrow-indicator\"><svg class=\"wolficon wolficon-arrow-right-bold\" role=\"img\"  aria-hidden=\"true\">\n\t\t\t\n\t\t\t<use xlink:href=\"#wolficon-arrow-right-bold\">\n\t\t<\/svg><\/span>\n              <\/a>\n    <\/div>\n  \n\n  <\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Creating Entries<\/h2>\n\n\n\n<p>Each post (which can be thought of as a database entry) links to another URL of your choice. Each post has fields for a name, teaser\/description, URL, and optional image.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-entry.jpg\" data-fullsize=\"600x414\" data-zoom=\"true\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"414\" src=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-entry.jpg\" alt=\"Screenshot of edit screen for Resources post type\" class=\"wp-image-38137\" srcset=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-entry.jpg 600w, https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-post-entry-300x207.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption class=\"wp-element-caption\">Back-end fields for each entry<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Categorizing Entries<\/h2>\n\n\n\n<p>The real power with the Resources post type comes through categorization. You can place each post into one or more categories to allow users to easily filter for resources.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Adding New Taxonomies<\/h3>\n\n\n\n<p>The post type automatically includes categories as a taxonomy, but sometimes you need more than one taxonomy. For example, you might be building a database to list available classrooms that can be reserved. You might want one taxonomy to allow filtering by building and another taxonomy to filter by number of seats available.<\/p>\n\n\n\n<p>Additional taxonomies <a href=\"https:\/\/www.advancedcustomfields.com\/resources\/registering-a-custom-taxonomy\/\">can be easily added by using ACF Pro<\/a>. This allows you to create however many additional taxonomies as needed, but it is recommended to not have more than five as too many choices can be overwhelming for users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"renaming\">Renaming Post Type<\/h2>\n\n\n\n<p>If you would like to have a database of lab equipment that can be checked out by students, you could rename the post type to &#8220;Lab Equipment.&#8221;<\/p>\n\n\n\n<p>These labels can be updated within the back-end of your site by going to NC State Settings -&gt; Custom Post Types -&gt; Resources and updating the following fields:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-cpt-label-settings.jpg\" data-fullsize=\"600x456\" data-zoom=\"true\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"456\" src=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-cpt-label-settings.jpg\" alt=\"Screen shot of settings to update the resources post type name and permalink structure\" class=\"wp-image-38136\" srcset=\"https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-cpt-label-settings.jpg 600w, https:\/\/university-communications.ncsu.edu\/documentation\/wp-content\/uploads\/sites\/21\/2024\/10\/resources-cpt-label-settings-300x228.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption class=\"wp-element-caption\">The post type name and URL slug can be changed to more specifically align with your content<\/figcaption><\/figure>\n\n\n\n<p>After updating these settings, you will likely need to go to Settings -&gt; Permalinks and click &#8220;Save Changes&#8221; without making any adjustments to the permalinks. Clicking &#8220;Save Changes&#8221; forces WordPress to update all of the post type slugs and recognize the changes made above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding Multiple Resources Post Types<\/h2>\n\n\n\n<p>The NC State Theme supports adding up to four Resources post types. This allows you to have multiple &#8220;databases&#8221; of different type of resources content on your site.<\/p>\n\n\n\n<p>To enable additional Resources post types, go to NC State Settings -> Custom Post Types -> Resources to configure additional post types.<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false,"ncst_custom_author":"","ncst_show_custom_author":false,"ncst_dynamicHeaderBlockName":"","ncst_dynamicHeaderData":"","ncst_content_audit_freq":"","ncst_content_audit_date":"","ncst_content_audit_display":false,"ncst_backToTopFlag":"","_links_to":"","_links_to_target":""},"availability":[49],"content-type":[98],"class_list":["post-37849","reference-article","type-reference-article","status-publish","hentry","availability-nc-state-theme","content-type-post-type"],"acf":[],"_links":{"self":[{"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/reference-article\/37849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/reference-article"}],"about":[{"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/types\/reference-article"}],"version-history":[{"count":1,"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/reference-article\/37849\/revisions"}],"predecessor-version":[{"id":39420,"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/reference-article\/37849\/revisions\/39420"}],"wp:attachment":[{"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/media?parent=37849"}],"wp:term":[{"taxonomy":"availability","embeddable":true,"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/availability?post=37849"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/university-communications.ncsu.edu\/documentation\/wp-json\/wp\/v2\/content-type?post=37849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}