Articles on: 3. Building Your Website

3.5.1. Create Custom Post Type

There is no Gallery page type present in WordPress. However, it is possible to create it as a Custom Post Type.


The Custom Post Type UI plugin provides an easy-to-use interface for registering and managing custom post types and taxonomies for your website. You can create your own post types, known as custom post types. These are useful when creating content with a different format than a standard post or page (galleries, events, documentation articles, etc).


1. Installation via plugin search in WordPress


  • Go to Dashboard > Plugins > Add Plugins and dearch for “Custom Post Type UI”
  • Click the “Install Now” button
  • Activate the plugin



2. Creating Custom Post Type 


  • Upon activation, you need to go to CPT UI » Add / Edit Post Types to create a new custom post type. 
  • You should be on the ‘Add New Post Type’ tab.
  • In this area, you’ll need to provide a slug for your custom post type, such as ‘Gallery’. This slug will be used in the URL and in WordPress queries, so it can only contain letters and numbers. Below the slug field, you need to provide the plural and singular names for your custom post type.


For example: 

  • Post Type Slug: e.g. Gallery
  • Plural Label: e.g. Galleries
  • Singular Label: e.g. Gallery
  • Scroll down and configure additional settings as needed
  • Click Add Post Type


If you like, you can click on the link that says, ‘Populate additional labels based on chosen labels.’ This will automatically fill in the additional label fields down below and will usually save you time.



3. Create Taxonomies 


  • Go to CPT UI → Add/Edit Taxonomies
  • Taxonomy Slug: e.g. gallery-category 
  • Plural Label: Gallery Categories
  • Singular Label: Gallery Category 
  • Under Attach to Post Types, check the box for the custom post type you want to link it to (e.g. Gallery)
  • Configure other settings (e.g. hierarchical = true for category-like, false for tag-like)
  • Click Add Taxonomy




4. Create Categories 


  • Go to Galleries > Gallery Categories > Add New




5. Create Galleries


  • Go to Galleries > Add New




Updated on: 29/07/2025