This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Advanced Custom Fields: Meta Location Rule

Description

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.

Limitations

This plugin will currently not work with fields in:

  • Flexible Content Fields
  • Repeaters
  • On options pages
  • On taxonomy pages

Usage

See the screenshots. It should be pretty self explainatory.

Wish list

  • Support for options pages.
  • Support for taxonomy pages.
  • More comparison operators, such as:
    • Less/more than
    • Before/after date

Screenshots

  • Where to find the "Meta Field" while defining a location rule.
  • "Meta Field" filled with a key and a value.

Changelog

1.0.5

PHP 5.2-compability: Moved all functions from anonymous callbacks and into a class, solely to achieve PHP 5.2 compability.

1.0.4

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).

1.0.3

Bugfix: Removed reference to JS-serialization-function, which was used to serialize before saving.

1.0.2

Text updated

1.0.1

Cookie-hack replaced by a much cleaner approach and cookie-library dependency removed.

1.0.0

First stable release.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code