You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to recover the rendered html of a post within a function for a rest api, the problem is that it is solved with the divi shortcodes (raw), I try to apply the apply_filter('the_content , $post_content), but it doesn't work , is there any solution?
Regards, and thank you very much.
Steps To Reproduce
I create a rest call to display the html and serve it to another application, but it doesn't render to html.
The text was updated successfully, but these errors were encountered:
and in the action callback function, you can fetch et_pb_layout posts by get_posts function , then loop it and call do_shortcode on each post_content. somthing like
Thank you very much @hrrarya, I'm sorry for the delay in answering, I haven't been able to solve it with that solution, the call is made within a rest service, the ajax service is not implemented, it has to be rendered from a direct php function.
Problem Description
I need to be able to recover the rendered html of a post within a function for a rest api, the problem is that it is solved with the divi shortcodes (raw), I try to apply the apply_filter('the_content , $post_content), but it doesn't work , is there any solution?
Regards, and thank you very much.
Steps To Reproduce
I create a rest call to display the html and serve it to another application, but it doesn't render to html.
The text was updated successfully, but these errors were encountered: