Tagged: ALB, avia, Custom Post Type, enfold
I am trying to utilize various CPTs for a project and see conflicting methods of how to achieve this within the forum entires. It used to be a short few lines added to the custom child theme functions file, but now it seems to have changed. Is there updated documentation for this anywhere?
I would like to be able to pull CPTs and their taxonomies, as well as be able to use the ALB for editing those CPTs.
Thank you,
-jason
Hey Jason,
Thank you for the inquiry.
You can actually use the plugin Custom Post Type UI (CPT UI) to create custom post types and taxonomies in your site. This will be recognized by the theme automatically. If you want to create your own manually, just check the portfolio post type registration in the /enfold/includes/admin/register-portfolio.php file for reference. You can use it as a template for other post types that you are planning to create.
This is the CPT UI page.
// https://wordpress.org/plugins/custom-post-type-ui/
This documentation should also help.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type
Best regards,
Ismael
Thank you, Ismael. The last part was what I was looking for. It sounded like things were changing in the recent past as to how Enfold handled CPTs, so before digging into a potentially deep project, I wanted to make sure I was in line with the best practices for Enfold compatibility.
Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike