elegantthemes / create-divi-extension

MIT License
187 stars 59 forks source link

Where is the pages stored in mysql with the theme builder header created in theme builder #404

Open sirdavidvarela opened 4 years ago

sirdavidvarela commented 4 years ago

Problem Description

Hello, in theme builder in divi, we can do headers differents for pages in worppress, here we select the pages with the theme header created, where is stored the "ID" of these pages por the theme builders created. thanks

code-with-mehedi commented 4 years ago

Hello @sirdavidvarela, Divi builder header content or pages content everything is stored in WordPress post table as a shortcode. Thanks

code-with-mehedi commented 4 years ago

Hi @sirdavidvarela Here is the screenshot. Check id of the sections stored in post meta. image

sirdavidvarela commented 4 years ago

ok, thank so much, my friend.

code-with-mehedi commented 4 years ago

look at these post_type in your db:

et_theme_builder et_template et_body_layout (or et_header_layout or et_footer_layout)

Find your 1 post that is post_type= et_theme_builder and that is post_status = publish, then look at it's post meta, you will see If you look at one of those _et_template ids, it will be post type et_template , and if you look at it's meta, you will see some useful meta overall, but there are 3 important ones, i.e. _et_body_layout_id (or header, or footer), which are the post ID of those inner layouts for that template

If you look at the post id for one of those, say the _et_body_layout_id , it will be post_type et_body_layout , and if you look at that post_content it will contain the shortcodes for that layout.