timperry / acf-post-type-selector Goto Github PK
View Code? Open in Web Editor NEWPost type selector for Advanced Custom Fields
Post type selector for Advanced Custom Fields
For some reason, your plugin (and not other acf plugins) started giving me a wrong URL for input.css and input.js.
It seems that the full path of the server gets pushed in the 'dir' parameter which messes up the enqueue styles and enqueue scripts later on in the code.
I just want to add that the plugin was working fine one day and the other day not, so it might have to do with a param on my server or something like that, but I just wanted to put it here in case someone gets the same problem.
For example, if two post types share the same label name it becomes difficult to differentiate the two without looking at the values of each post type.
I suggest using acf_get_pretty_post_types()
, which is what ACF uses for its relational field types (Post Object, Page Link, Relationship). The function handles label conflicts by appending the post type key to the label.
Would it be possible to add the plugin to https://packagist.org?
Thanks!
Nothing works and the readme file is a old one ... DONT USE!
I was thinking about dropping support for ACF v3.
Reasons: The latest release from the v3 branch is dated back to 2013-11-22, futhermore, @elliotcondon announced to update the free version to v5 over the course of 2018 (elliotcondon/acf@d398b0f644e60ab5713714ad586df3aca30b36d4, blog post).
On the WordPress plugin page, v3 is not listed in the "Active Versions" section.
Given these facts, I'm pretty sure there are very few installations running v3 and it's save to remove support for it.
What do you think? Any feedback is appreciated!
This would also affect #21.
Hi,
when using radio boxes (not tested with checkboxes) clicking a label doesn't select the corresponding input.
Simply add a combination of for
and id
attributes to the label
and input
elements to make it working,
Thanks!
The field doesn't appear in ACF5.
Is it possible to add support for multiple select? I know, that I can achieve same from checkboxes, but if you have many post types it would be more user friendly.
Hi @TimPerry,
since you're "out of WordPress", have you thought about transferring ownership of this repository?
I'd be willing to overtake it.
Adding it to a post results in the following error:
Fatal error: Uncaught Error: Call to undefined function acf_force_type_array() in /srv/www/mvm/public_html/wp-content/plugins/acf-post-type-chooser-master/acf-post-type-chooser-v5.php:158 Stack trace: #0 /srv/www/mvm/public_html/wp-includes/class-wp-hook.php(286): acf_field_post_type_chooser->render_field(Array) #1 /srv/www/mvm/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /srv/www/mvm/public_html/wp-includes/plugin.php(531): WP_Hook->do_action(Array) #3 /srv/www/mvm/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php(105): do_action_ref_array('acf/render_fiel...', Array) #4 /srv/www/mvm/public_html/wp-includes/class-wp-hook.php(286): _acf_apply_hook_variations(Array) #5 /srv/www/mvm/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #6 /srv/www/mvm/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #7 /srv/www/mvm/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions in /srv/www/mvm/public_html/wp-content/plugins/acf-post-type-chooser-master/acf-post-type-chooser-v5.php on line 158
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
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.