BeBuilder is not available for custom post types

Is there an option to make BeBulder available for custom post types created by the Pods plugin? Everything is working perfectly but in case I want to edit a custom post type there is no option to use BeBuilder just only build in WordPress editor.

Comments

  • Hi,

    You need to use the following filter to your child theme:

    // add in child theme functions.php
    
    add_filter('bebuilder_post_types','my_post_types');
    
    function my_post_types($post_types){
    	$post_types[] = 'my-custom-post-type';
    	return $post_types;
    }
    

    In my_post_types place, you need to put the name of the post type where you want to use the BeBuilder.


    Best regards

  • Thank you this works, but content from BE Builder is not translated by WPML (also related to custom post type).

  • Do you have the newest version of Betheme installed?

    Did you check if you do not have to enable these post types translation in the WPML settings?


    Best regards

  • Yes latest Betheme and WPML is enabled for custom post types. The post is translated but only the title. It looks like content from BeBuilder is not extracted for translation. When I open translation for regular posts I see title + content from BeBuilder. When i open a custom post I see only the title and no content included.

  • Hey,

    Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at http://themeforest.net/user/muffingroup#contact, and we will check what might be the reason.

    Notice!

    Please attach a link to this forum discussion.

    Sending incorrect or incomplete data will result in a longer response time.

    Therefore, please ensure that the data you send are complete and correct.

    Thanks

  • Thank you I sent the request.

  • You did not have the function to add BeBuilder to your custom post type, so I added it.

    Also, I changed this option in WPML settings:

    And the translation works:

    Best regards

  • Ok, but the function was and still is in function.php in the child theme (at the beginning). So it was about settings in WPML. So thank you.

  • Somehow, I overlooked this function. Anyway, I'm glad I could help.

    If you have any other questions or problems, feel free to ask.


    Best regards

  • I have also tried to enable BeBuilder for a custom post type.

    My custom post type is called "recipie".

    I do not see my custom post type show up as an option in the templates. Am I missing a step?

    The code I added to my chlid theme php page is:

    add_filter('bebuilder_post_types', 'recipieType');

     

    function recipieType($post_types){

    $post_types[] = 'recipie';

    return $post_types;

    }


  • This filter is not for enabling templates for CPT but to enable BeBuilder to create content in the CPT.

    Activating CPT template is more complex which require modifying many Betheme files in which we do not provide support, and one simple function will be not enough for that.

    If you want to have such a feature you must contact your web developer to adjust files for you.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.