Forum Replies Created
-
AuthorPosts
-
sociality
Participant๐ Well if you make any updates, let me know! Thank you for the support.
Cheers.
sociality
ParticipantI found this article https://code.tutsplus.com/articles/how-to-add-custom-fields-to-attachments--wp-31100
describing what we are talking about. Take a look at show_in_modal parameter. It is exactly what I want. Maybe you could integrate that into your plugin.
Cheers.
sociality
ParticipantHello,
I use something like this
$meta_boxes[] = array( 'title' => __('Structure Info', 'colours-of-a-journey-plugin'), 'type' => 'user', 'fields' => array( array( 'name' => __( 'Name', 'colours-of-a-journey-plugin' ), 'id' => $prefix . 'structure_name', 'type' => 'text', 'required' => true, ), ), );The required attribute does not seem to work.
sociality
ParticipantToo sad.
Well, I believe that it should be much more easier for the user to fulfill the metas through the pop up window and not through the page of the attachment (one step more). Does any other of your plugins do that or maybe you could somehow guide me and achieve this?
Thank you anyway ๐
sociality
Participantok ๐
sociality
ParticipantAlso,
Is there a way to make a field as required field?
Thank you.
sociality
ParticipantHello,
What do you have in mind? Something like
if ( current_user_can('structure') ) { $meta_boxes[] = array( 'title' => __('Structure Info', 'colours-of-a-journey-plugin'), 'type' => 'user', 'fields' => array( array( 'name' => __( 'Name', 'colours-of-a-journey-plugin' ), 'id' => $prefix . 'structure_name', 'type' => 'text', ), ), ); }I am not sure if something like that can work ๐
sociality
ParticipantHello Anh Tran,
It worked. Thank you.
sociality
ParticipantHello,
I see. Thanks for the feedback. I will use the "step" field.
sociality
ParticipantHello,
It works now. Thank you for the support.
sociality
ParticipantHello,
Thank you for your answer. I tried that out with no result. Also, the fields I am talking about are "post", "time" and "taxonomy" fields, not "image advanced". Any other ideas?
Thank you.
-
AuthorPosts