wordpress-fieldmanager
wordpress-fieldmanager copied to clipboard
Custom field types for WordPress
This is the code ``` 'category' => new Fieldmanager_Autocomplete( array( 'label' => 'Category', 'name' => 'category', 'limit' => 0, 'extra_elements' => 0, 'add_more_label' => 'Add Category', 'display_if' => [ 'src'...
If you create a checkbox with a default value `true` (checked) within a repeating field group, Fieldmanager fails to save the checkbox state when unchecked, even if '`save_empty'` is set...
Problem arises for users with interfaces with languages other than English. Datepicker uses `strtotime` which only translates English date format (see [docs](http://php.net/manual/en/function.strtotime.php)). Now since translated version of jQuery return translated...
[Support for custom post types was added to `url_to_postid()` in WordPress 3.7](https://core.trac.wordpress.org/ticket/19744). According to its docs and [the site where it came from](http://betterwp.net/wordpress-tips/url_to_postid-for-custom-post-types/), `fm_url_to_post_id()` was intended to work around the...
The media modal allows specifying an array of `type`s by which to limit the results. I'm not sure what the best way would be to backwards-compatibly support the array in...
I have two separate fields set to `display_if` based on two separate values in a `Fieldmanager_Checkboxes` field. While this does work as a trigger, only one of the conditional fields...
WordPress 4.7 is on track to add a sanitizing function for textareas -- see https://core.trac.wordpress.org/changeset/38944. It doesn't seem like `fm_sanitize_textarea()` could be removed entirely, but, if `sanitize_textarea_field()` makes it into...
Currently, you can only pass one value through your `custom_args_js_event` event without some creative coding. The current [event trigger](https://github.com/alleyinteractive/wordpress-fieldmanager/blob/d739dabaebeb40f9a4fc551735ace627a6979982/js/fieldmanager-autocomplete.js#L32) could be modified to pass an object as an argument. This...
When you add a label to a standard group, it makes the group look like a meta box. It should be possible to override that behavior to instead drop in...
Hi there, I am defining an image field with the Fieldmanager_Media with param validation_rules, in order to make it required. ``` /* Featured Image */ $featured_image = new Fieldmanager_Media( false,...