Skip to main content

Creating a Single Page for a Custom Content Type (CCT)

Updated over 12 months ago

By default, a Custom Content Type (CCT) does not include a single page. However, you can assign a single page to a CCT by connecting it with a new or existing Custom Post Type (CPT). Here’s how to set it up:

  1. Enable Single Page for CCT:

    • Go to CCT General Settings and find the following options:

      • Has Single Page: Toggle this on to link the CCT to a CPT for single-page functionality. Additional settings will appear once this is enabled.

      • Related Post Type: Select a Custom Post Type from the dropdown to use as the single page for your CCT.

      • Title Field: Choose a field from your CCT’s meta fields (text or number only) that will populate the post’s title.

      • Content Field: Choose a field (text or number only) that will populate the post’s content area. Note that changes to the post content won’t affect the original CCT item field.

    Note: This setup only applies to new CCT items, meaning a new post from the selected CPT will be created for each new CCT entry.

  2. Alternative Approach with a Static Page:

    • If you prefer a custom solution, you can use the following steps to create a static page that will act as a single page for your CCT:

    Step 1: Create a Static Page with a CCT Listing

    • Design a static page that will function as the single page for your CCT.

    • Add a CCT listing to the page, which will serve as the template for displaying individual items.

    Step 2: Create a CCT Query

    • Set up a query for the CCT based on a Query Variable. This will allow you to dynamically display specific CCT items.

    Step 3: Set Up a Dynamic Link for Redirection

    • In a separate CCT listing that will link to the single page, add a Dynamic Link widget.

    • In the widget’s settings:

      • Uncheck the Permalink option.

      • Add a non-existent meta field name, and input the URL of the static page you created.

    Step 4: Enable Query Argument

    • Enable the Query Argument option and enter the same argument you used in your CCT query.

    • This setup will redirect users to the static page you created, where only the item they clicked on will be displayed, thanks to the query argument filtering.

Following this guide allows you to create a single page for CCT items, using either the built-in options or a custom setup.

Did this answer your question?