Thank you! that was very useful for me. but I have another question, how can I echo the value of the title in the acf form in another input field out of acf form?
So if i make the permalink based on the post title, can a field in the form by ajax or anything else display the permalink when I put the title of the post? maybe a button can refresh the value of the field by javascript so the field can get the permalink after I add the titel or something like that, is that possible?
the permalink based on %post_id%, my code working code in back-end, but in front-end dosen’t work. is the acf_form cant display the permalink or it is impossible from the beginning?
Thank you! That was very useful.
I have a two post types, the first one is ‘chapters’, and the second id ‘novel’. in the’post’ post type I have a post object field that displays the novels of ‘novel’ post type. and I have a relationship field in the ‘chapters’ post type, and I want to filter the results of relationship field to display the chapters that have the same novel in post object field. I hope I explained my problem good.
Try this:
div[data-key="field_key"] {
display: none;
}
I tried it and it works well.