beapi / acf-php-recovery Goto Github PK
View Code? Open in Web Editor NEWWordPress plugin to recover Advanced Custom Fields fieldsets from PHP export
WordPress plugin to recover Advanced Custom Fields fieldsets from PHP export
This doesn't seem to be working with the most current version of ACF. I've tested it with a few WP installs, & it looks to be Recovering the field group correctly, but only the last field in each group. The field group draft (immediately after recovering the group) shows the number of fields that should have been recovered, but if you view the draft, it only displays 1 recovered field. Also, after you publish the group, the recovered field number updates to 1(in the field group list).
I tried to use this plugin on WordPress 4.9.8 and ACF Pro 5.7.7 and it didn't work how I hoped. I was able to bring up the fields in the admin panel but it didn't work to edit the fields and I actually lost all the fields in the front end. I had to create new fields manually in the PHP and would still like to use this to recover what the previous developer imported.
First of all: Great plugin :)
Only issue we're having is that fields with conditional logic are ignored and not imported.
I wanted to donate to your project because you just saved me a ton of time! How can I do that?
Thanks!
Super useful!
However, location rules aren't imported, they are all set to post_type "post".
But... include where?
When I try to activate the plugin I get the "you do not have sufficient permissions" error. Maybe it's something about my environment or another plugin.
It looks like manage_options
is the requirement, which I meet as an Administrator.
I'll post back if I find anything out.
Salut,
Si le groupe de champs a un apostrophe cela casse la requête SQL et en plus ce n'est pas très secure ;)
$sql = "SELECT ID, post_title FROM $wpdb->posts WHERE post_title LIKE '%{$field_group['title']}%' AND post_type='".ACFPR_GROUP_POST_TYPE."'";
Peut être utiliser un "prepare" ?
Thierry
This plugin seems to work well, in as far as it recovers the fields from my PHP script. The fields and all subfields, options, etc. appear in wp-admin as they should.
However, none of the values in the generated fields are saved. Editing pre-existing data (i.e. field content) produces the same result. Previously-saved field values are correctly displayed in wp-admin, but no modification of their values is saved. (e.g. the text in the WYSIWYG fields in the attached screenshot.)
Were to include my php file that contain the fields to recover?
It appears that the location isn't being imported.
I am unable to find the options page. After installing & activating, no submenu is added to "Custom fields".
WP Version: 4.2
ACF version: 4.4.1
Great plugin!
It doesn't seem to be working with ACF 5.7.12 onwards due to the acf_local
function being removed.
ACF support said:
Yes, the `acf_local()` function was removed whilst making improvements to the "Local Fields" component.
Instead of directly accessing the acf_local() data, please make use of the functions available in the "includes/local-fields.php" file such as:
- acf_get_local_field_groups()
- acf_get_local_fields()
I'm not experienced enough with this particular part of ACF to patch it, but I just wanted to let you know.
Thanks,
Lloyd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.