Comments (6)
@timohubois Ah looks like I also need to add the acf-field post type:
if ( in_array( $postArr['post_type'], [ 'revision', 'nav_menu_item', 'attachment', 'customize_changeset', 'custom_css', 'acf-field-group', 'acf-field' ] ) ) { return $data; }
It seems to work like that. Should it be fine like this?
You was 1 minute faster 😅
This should work, but maybe there are other edge cases. Will dive deeper into it this evening ✌️
from flynt.
Hey @aaronmeder,
many thanks for figure this out!
Did a short test and can confirm the behavior.
As quickfix, you can try to add 'acf-field-group' inside the theContentFix.php:
if (
in_array(
$postArr['post_type'],
[
'revision',
'nav_menu_item',
'attachment',
'customize_changeset',
'custom_css',
'acf-field-group'
]
)
) {
return $data;
}
Will investigate this issue deeper asap.
Let me know if this works for you?
from flynt.
@timohubois Thanks for looking at this so quickly.
Hmm not fully: it seems to fix assigning Location rules, but it's still not saving field types for me.
from flynt.
@timohubois Ah looks like I also need to add the acf-field post type:
if (
in_array(
$postArr['post_type'],
[
'revision',
'nav_menu_item',
'attachment',
'customize_changeset',
'custom_css',
'acf-field-group',
'acf-field'
]
)
) {
return $data;
}
It seems to work like that. Should it be fine like this?
from flynt.
@aaronmeder did some tests and excluded all acf related post types now, you can find the WIP branch here:
https://github.com/flyntwp/flynt/tree/543-flynt-v21-cannot-correctly-save-acf-field-groups
Let me know if the changes work for you?
from flynt.
@timohubois Works great for me!
from flynt.
Related Issues (20)
- composer install not working twig/cache-extension is abandoned HOT 15
- How to link scripts correctly HOT 4
- How to implement conditional_logic? HOT 2
- Local Environment (Flynt Next) HOT 2
- Is there a good way to bulk create posts with components? HOT 1
- Minor front and back end issues HOT 4
- Not Getting meta data in GridPostsLatest HOT 6
- Can it be used with a hosted wordpress with limited ssh? HOT 1
- Build Fails HOT 3
- similar build issue on Windows HOT 6
- How to use repo within docker containers - DDEV HOT 6
- Migration Guide HOT 1
- How to add tailwind? HOT 1
- Can't access development site from external device
- How can we call the shortcodes in flynt ? HOT 1
- flynt 2.1.1 'Fatal Error' @ twig 3.10 deprecation in Timber src HOT 4
- CDN emojis not available HOT 1
- Theme Size and Production Steps for Local to Live domain HOT 8
- Assertion traceback too verbose
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flynt.