-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The bricks builder theme uses post_meta to save theme adjustments.
as an example i added some sections and a title bar to a page
if i export it it comes with the _meta, but if you adjust it and then import back again via the cli it reverts to the base state.
A.E. the code below is a direct export from a page "Sample Paige"
if i change the post_title to "Sample Page" it works and imports correctly
if below in meta._bricks_page_content_2[0][2].settings.text i change the content and then import with cli it ignores it completely
{
"ID": 2,
"post_title": "Sample Paige",
"post_content": "<!-- wp:paragraph -->\n<p>This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin' caught in the rain.)</p></blockquote>\n<!-- /wp:quote -->\n\n<!-- wp:paragraph -->\n<p>...or something like this:</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:quote -->\n<blockquote class=\"wp-block-quote\"><p>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</p></blockquote>\n<!-- /wp:quote -->\n\n<!-- wp:paragraph -->\n<p>As a new WordPress user, you should go to <a href=\"http://db-version-control-test.local/wp-admin/\">your dashboard</a> to delete this page and create new pages for your content. Have fun!</p>\n<!-- /wp:paragraph -->",
"post_excerpt": "",
"post_type": "page",
"post_status": "publish",
"post_name": "sample-page",
"meta": {
"_wp_page_template": ["default"],
"_edit_lock": ["1749808675:1"],
"_bricks_template_type": ["content"],
"_bricks_page_content_2": [
[
{
"id": "bnbcls",
"name": "section",
"parent": 0,
"children": ["dieuhe"],
"settings": []
},
{
"id": "dieuhe",
"name": "container",
"parent": "bnbcls",
"children": ["xtdtzu"],
"settings": []
},
{
"id": "xtdtzu",
"name": "heading",
"parent": "dieuhe",
"children": [],
"settings": {
"text": "<span class=\"text\">THIS SHOULD SYNC BUT IT DOESNT</span>",
"separator": "right",
"separatorWidth": "1px",
"separatorHeight": "10px",
"separatorColor": {
"hex": "#212121",
"id": "88fda7",
"name": "Color #6"
},
"separatorStyle": "solid",
"type": "hero"
}
}
]
],
"_bricks_editor_mode": ["bricks"]
}
}Metadata
Metadata
Assignees
Labels
No labels