+1 for this as well. Very strange this isn’t included?
I tried John Huebner’s idea but it didn’t work.
All good here’s the link for paid support… https://support.advancedcustomfields.com/new-ticket/
This is a good one… https://wordpress.org/plugins/relevanssi/
There are some great search plugins that you can install that index your custom fields and other data in your post.
Are you ppl alive?
Yes we are. Please be mindful that this is a free plugin, with free support, from others in their spare time… no one here is obliged to help you and your importance does not transfer to anyone else’s priorities. You can pay and get help faster.
Any progress on this?
This may be complicated to explain but i’ll give it my best shot.
The background…
I’m making a site whereby teachers from different schools can create posts about different students from different schools. Importantly, teachers may only be able to view/choose/check/tick students from the same school as themselves.
I have created new user roles (and capabilities) for teachers according to the name of their school e.g.
XYZ primary school teachers are assigned the user role: xyz and capability: xyz
ABC highschool teachers are assigned the user role: abc and capability: abc
I have ACF Pro and CPTUI plugin to create new custom taxonomies.
I have created a taxonomy student that contains the names of all the students.
I have created a taxonomy school that contains the names of the different schools.
WIth ACF I have created a field group that assigns the school taxonomy to the student taxonomy. This means when I create or edit an individual student term the student has a school taxonomy radio button for me to choose which school the student is assigned/belongs to.
I have also done the same to the users (teachers). I have created a field group that assigns the school taxonomy to the users. This means when I create or edit a user (teacher) the user has a school taxonomy radio button for me to choose which user the user/teacher is assigned/belongs to.
As you can see the above field groups that assign the school taxonomy to the users and student taxonomy gives both the users/teachers and students a common link/taxonomy (school).
I have created another field group assigned to a post with many other fields.
This is where my question really starts….
When a user/teacher creates a post one of the fields the user must tick is the student. However, all the student names are listed. I only want the students(terms) assigned with the same school taxonomy as the user creating the post to be visible in the list of students. In other words only populate the student taxonomy with those students(terms) that have the same school(term) as the user(teacher) creating the post.
When creating or editing a post…
IF current_user (has_term(XYZ) in_tax(school))
THEN populate taxonomy(student) with (has_term(XYZ) in_tax(school))
Another way may be to have a condition whereby…
IF current_user (user_capability(xyz)
THEN populate taxonomy(student) with (has_term(XYZ) in_tax(school))
Either way is fine by me the important thing is to only display the student names that belong to the same school as the teachers creating the post.
Thanks can I push my luck and ask how to format the date?
How does one…
use JS to remove the size=”5″ attribute
Thanks heaps for this
That is crazy awesome that you can just whip up a plugin this ACF community has been desperately waiting for.
Thanks so much.
Can we leave you donation somewhere? I’d like to think everyone on this post would be happy to throw a little at your skill and generosity.
Come on Elliot, be a sport and say something. You said previously you were planning to. Tell us honestly, yes or no. Let’s put this sleeping dog to rest once and for all.
Do you plan on developing conditional taxonomies?
Yep. Another way I found out is to tick the ‘other’ option and add
as the default field.
That looks like exactly what I need, I’ll try it out. Thanks
I’ve read that page and haven’t had any luck in implementing it.
The ACF UI stuff is easy but when it comes to using the custom field on the front end that’s where I just can’t get it to work (figured out).
I only followed your instructions. I only swapped themy_field_name
with my own field name.
Yes, I swapped the my_field_name
with my own field name.
Thanks, but unfortunately it doesn’t display the map.
Can you explain this?
Conditional Custom Taxonomies would be extremely useful. If Elliot isn’t going to implement this, are the above people willing to combine costs to get this developed?
But do you know how to do it?
Thanks heaps, i had the same issue.
Yes, I meant changed the position option in the field group setting – as it is now my field group setting has “High (after title)” as the postion, yet in fact the field group is below the content field. I only managed to move it from the sidebar by 1. changing the styling to a Standard Metabox then dragging it the Wp way.
I suspect it may be a plugin interferring… are there any known issues with this?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.