elegantthemes / create-divi-extension

MIT License
188 stars 59 forks source link

Divi post content using ajax #601

Open iamasharaf opened 2 years ago

iamasharaf commented 2 years ago

Problem Description

I am building custom theme with Divi builder, While building i need to load the post content(which builds using divi builder). I am able to bring the content and design on front end But the issue is the post content is coming out with divi shortcodes and it's not converting to html just divi shortcodes

Steps To Reproduce

1.

Screenshot and/or gif

image

hrrarya commented 2 years ago

Try out this filter.

add_filter( 'et_builder_load_actions', function( $builder_load_requests ) {
    $builder_load_requests[] = 'YOUR_ACTION_NAME_TO_GET_THE_POST_CONTENT';
    return $builder_load_requests;
});

This works in my case. I was trying to get the Divi layouts.