Support

Account

Home Forums Backend Issues (wp-admin) Retrieve post_ID in divi theme visual builder Reply To: Retrieve post_ID in divi theme visual builder

  • thank you for your reply, I understood your explanation, but even using your code, unfortunately if I don’t manually specify the parameter post_id into the shortcode squares, it will not render into the visual builder. Honestly I think that I have to retrieve the post id from some sort of ajax call to make it works in the visual builder, cause I think that this code

    $post_id = $_POST['et_post_id'] ;

    is related to this ajax call

    ajax

    but it is difficoult for me to find a way out, this is for sure related to how divi passes the current post_id to shortcodes