-
Posts
55 -
Joined
-
Last visited
Community Answers
-
Christian's post in Saving a Multi Lingual was marked as the answer
Fixed. I just have to add curly braces.
foreach( $page->fields as $field ) { if( ! in_array($field->type, $ignore_field_type) ) { $field_name = $field->name; $revise_page->{$field_name} = $page->get($field->name); } } I just changed the field name to dynamic so you might just enclosed static field name to curly braces.
-
Christian's post in Dynamic field type on saving a page was marked as the answer
Fixed. Just have to add curly braces.
foreach( $page->fields as $field ) { if( ! in_array($field->type, $ignore_field_type) ) { $field_name = $field->name; $revise_page->{$field_name} = $page->get($field->name); } }