Code Monkey home page Code Monkey logo

acf-filters-and-functions's People

Contributors

artulloss avatar bradbaris avatar edflips avatar guilima avatar hube2 avatar jordan-webdev avatar simonrcodrington avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acf-filters-and-functions's Issues

acf-delete-images-when-removed-from-gallery.php

When a user deletes an image from the gallery in wp-admin I need it to be deleted from the media library too. I have a function using the acf/update_value hook which works uncorrectly. When a user simply updates a post, WordPress removes all images from the media library and current gallery field. Please tell me how to fix it?

acf-reciprocal-relationship.php

Hi,

I'm really interested at using this code, but I didn't get it to work yet.

Would it be possible to tell me where / in which file you have put this code?

Kind regards,
Crombez Silke

Uncaught TypeError: Cannot read property 'query' of undefined

Hi !

I came across your solution to add a default value field to the image field type and it seems to be exactly what I'm looking for.
Thanks for that !
Nevertheless when I try to open the file manager by clicking on the new button :
image
An error occure :
image

Is it because of a new version of ACF or is it comming from me ?
The code I used :

function add_default_value_to_image_field( $field ) {
        acf_render_field_setting( $field, array(
		'label'			=> 'Image par défaut',
		'type'			=> 'image',
		'name'			=> 'default_value',
	));
}
add_action('acf/render_field_settings/type=image', 'add_default_value_to_image_field');

Thanks

Conditional Field Key possible?

I have a dog family tree I'm building and this code works great!

A child can choose a mother or father and that exchange of data works great. The tricky part is when a parent chooses a child. The parent will show up on both the mother and father fields. Is there anyway to maybe choose a different field key depending on the gender of the parent?

For example, if the parent's gender is male then the field key is 'father field key' else field key is 'mother field key'

essentially there are three fields involved.
dog_father
dog_mother
dog_child

On the child profile selecting a father and mother is no problem.
On the parent profile selecting a child will put the parent on both dog_father and dog_mother field because I have a filter for both those fields have a bidirectional relationship with dog_child.

I want to be able to determine how I can target dog_father if the gender (another custom field) is male and dog_mother if gender is female.

Is something like this possible with your code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.