Hi!
I have created a custom post type “content_block” in my site, and i have enabled the enfold layout builder in this post type.
Now, i would like to use the “Page Content” element in the layout builder to display the content from this custom post type:
I can not choose this custom post type from the drop-down of single entry, I see only “page” and “Portfolio”.
Is it possible to enable display of the custom post type?
Thanks in advance
Hey QBDSwedenAB,
Here are the docs for you:
If you need further assistance please let us know.
Best regards,
Victoria
Hello Again
I can not find the answer to my question in the link you have provided, and I think i should explain the issue a bit more.
I want to use the Enfold Element “Page content” << Display the content of another page (fullwidth). The element works great with displaying another page or portfolio into another page. I want to use this element but instead of displaying the content of page or portfolio as supported, I want to display the content of a custom post called content_block.
I was able to do this by changing the file
config-templatebuilder/avia-shortcodes/postcontent.php
Line 67: “posttype” => array(‘page’,’portfolio’), to “posttype” => array(‘page’,’portfolio’,’content_block’),
Is there a cleaner way or a function to do this with?
Hi,
Thank you for the update.
It is possible to override the whole shortcode in the child theme. Please check the documentation below.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
Best regards,
Ismael