This add-on to Advanced Custom Fields (ACF) makes it possible to add location rules for the custom fields / meta fields of any post.
Using this plugin, you can create any custom field and make another set of custom fields, depend on the value of this custom field.
We decided to create this plugin, as we often face problems when trying to deploy our ACF fields from test to production, due to the nature of the other location rules. The built in location rules in ACF are mostly based on IDs, but IDs are rarely the same in test as in production.
This software is licensed under the GNU General Public License version 3. See gpl.txt included with this software for more detail.
Please note, that this plugin is an unofficial Advanced Custom Fields-plugin.
This plugin will currently not work with fields in:
- Flexible Content Fields
- On options pages
- On taxonomy pages
See the screenshots. It should be pretty self explainatory.
- Support for options pages.
- Support for taxonomy pages.
- More comparison operators, such as:
- Less/more than
- Before/after date
Install this plugin by searching for it in your plugins manager within your WordPress site.
Contributors & Developers
“Advanced Custom Fields: Meta Location Rule” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
PHP 5.2-compability: Moved all functions from anonymous callbacks and into a class, solely to achieve PHP 5.2 compability.
Bugfix: When using radio and checkbox input types for the rule meta field, the wrong rule be used (missing check of which radio/checkbox was actually the checked one).
Bugfix: Removed reference to JS-serialization-function, which was used to serialize before saving.
Cookie-hack replaced by a much cleaner approach and cookie-library dependency removed.
First stable release.