Home>Support>Best way to creating custom post type templates with custom fields

Best way to creating custom post type templates with custom fields

By gmeeusen, 6 years ago. Last reply by gmeeusen, 6 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi

I would like to know what currently the best way is to use the SiteOrigin page builder with cpt and metaboxes or custom fields.

Create CPT: I found here that we can make cpt’s with the premium plugin and there are also some other ways, so that is covered I believe. https://siteorigin.com/premium-documentation/plugin-addons/custom-post-type-builder/

single-cpt page: Again with the same premium plugin –> “Create a single Page Builder layout that can be used for all product pages without having to rebuild the layout for each new product added.” + “Make layout changes to the product page layout and have those changes reflected across the entire product catalog.”

archive-cpt page: Again SiteOrigin premium plugin? https://siteorigin.com/thread/custom-post-types-custom-fields-display-with-vantage-and-pagebuilder/ or copy default posts archive page to archive-cpt.php and modify wp query.

Metaboxes – custom fields:
I assume that with the premium plugin you can change everything in the cpt template within the page builder. Is there however a way to use simple input fields like when you use custom meta boxes (https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/), acf, or any other framework for creating custom fields?

Currently I see 2 options and none of them use the template functionality in the Premium plugin
1) making the page with the page builder, copy html + css + loaded scripts, and make the page in single-cpt.php with the custom fields.
2) copy widgets and modify them to use the custom fields

These options are not that fast and not so flexible to modifications.

Is there any faster and more flexible way?

Cheers

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 8 months ago Alex S
    Hi, I Work Here

    Hi Gmeeusen,

    Create CPT: I found here that we can make cpt’s with the premium plugin and there are also some other ways, so that is covered I believe. https://siteorigin.com/premium-documentation/plugin-addons/custom-post-type-builder/

    The Custom Post Type builder will allow for the the following functionality:

    single-cpt page: Again with the same premium plugin –> “Create a single Page Builder layout that can be used for all product pages without having to rebuild the layout for each new product added.” + “Make layout changes to the product page layout and have those changes reflected across the entire product catalog.”

    Please note that this was an example use case of the Custom Post Type Builder, not different functionality.

    This functionality specifically allows for the mirrors and template system as well as a simple way of custom post types.

    Ths is not to suggest that you need SiteOrigin Premium to use SiteOrigin Page Builder on custom post types. For reference, you can enable SiteOrigin Page Builder for a custom post type by navigating to WP AdminSettingsPage Builder and open the General tab. Tick the Custom Post type you wish to enable SiteOrigin Page Builder for.

    archive-cpt page: Again SiteOrigin premium plugin? Thread: Custom Post Types – Custom Fields Display with Vantage and Pagebuilder or copy default posts archive page to archive-cpt.php and modify wp query.

    That’s unrelated and specifically a theme change to allow for the user to create an archive description using Page Builder.

    Is there however a way to use simple input fields like when you use custom meta boxes (https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/), acf, or any other framework for creating custom fields?

    This functionality is present in SiteOrigin Widgets Bundle and doesn’t require an upgrade. Please refer to the SiteOrigin Widgets Bundle Post meta box forms tutorual.

    You can also use ACF – there isn’t a direct tutorial for this, you’ll build the meta boxes using ACF and display the data using custom ACF widgets. This isn’t something we can directly assist with.

    Currently I see 2 options and none of them use the template functionality in the Premium plugin

    The Custom Post Type Builder is for a very specific use case, and it’s not the only solution (as mentioned above) to accomplish this.

  2. 6 years, 8 months ago gmeeusen

    Woow, had no idea SiteOrigin has a custom post type builder. Just starting to use SiteOrigin and it looks promising.

    Awesome info there, thanks!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More