Forum Replies Created
-
AuthorPosts
-
Eliodata
ParticipantI can't edit, sorry for the code.
Eliodata
ParticipantThank you for your support!
Your example works for a text prefix, but I don't know how to add username as a prefix too. Here is my code:
<div> function my_unique_filename_callback( $dir, $name, $ext ) { $name = 'emargements_' . $name; return $name . $ext; } add_filter( 'rwmb_meta_boxes', 'metabox_file_upload_formateurs_emargements' ); function metabox_file_upload_formateurs_emargements( $meta_boxes ) { $prefix = ''; $current_user = wp_get_current_user(); $user_login = $current_user->user_login; $meta_boxes[] = [ 'title' => __( 'Documents formateurs', 'your-text-domain' ), 'id' => 'documents-formateurs', 'fields' => [ [ 'id' => $prefix . 'file_docformateursemarge', 'name' => __( 'Documents formateurs émargements', 'your-text-domain' ), 'type' => 'file', 'upload_dir' => ABSPATH . 'myfile/' . $user_login . '/emargements', 'unique_filename_callback' => 'my_unique_filename_callback', ], ], ]; return $meta_boxes; } </div>Eliodata
ParticipantWorks great 🙂
Thank you for the quick support!Eliodata
ParticipantThank you for the kind help.
Custom fields have been created with the builder and works great on my product pages.
But I will find another solution for Yoast SEO.
Best regardsEliodata
ParticipantYou can see here the settings before update aio:
https://formationstrategique.fr/wp-content/uploads/Capture-décran-2021-04-07-à-14.08.31.pngThen after update, with the new strange rule I have to delete:
https://formationstrategique.fr/wp-content/uploads/Capture-décran-2021-04-10-à-14.03.18-1.pngEliodata
ParticipantHi,
I got it. After the AIO update a new rule appears into the metabox builder Custom fields settings.
Into "Advanced location rules" there is a new line "post" which should be used to select specific posts. Into the selected area there was the post types slugs pasted from the location field (client, prospect). That's very strange because no post have the same name as these cpt, so if I delete "clent" from the post rule then try to manually had it again it is not possible, because there is no such post...
I deleted the rule and everything works great. I will try on the production website this night.
Best regardsEliodata
ParticipantHi,
You can read the json here:
https://formationstrategique.fr/devbddfs/wp-content/uploads/untitled-field-group-2.jsonThank you!
Eliodata
ParticipantForget my question. E2PDF team helped me to render the shortcode.
Regards
Eliodata
ParticipantOK. I guess is the same for my other post related to metabox relationship custom fields.
FYI pods relationship feature adds a simple edit link near to the related items once selected. A similar solution would be nice.Best regards
Eliodata
ParticipantThank you for the very quick answer!
Same problem as the other topic.
I don't want to display the link on front end, but on the edit post / user relationship metabox.
Maybe I didn't understood your answer, I am not a dev, sorry. And I would understood if this this question is beyond the scope of your support.Eliodata
ParticipantThank you for the very quick answer! I don't want to display the link on front end, but on the edit post / user relationship metabox.
Maybe I didn't understood your answer, I am not a dev, sorry. And I would understood if this this question is beyond the scope of your support.Eliodata
ParticipantEdit: I am using bi-directional relationship between users and custom post types!
Thank you
Eliodata
ParticipantThank you again and sorry for the waste of time.
I know the format is not good. The imported links were pointing to local server folders before beeing pasted into this database.
But that bad format have never been an issue until the last metabox plugin update.We will try something else.
Regards
Eliodata
ParticipantHi,
Thank you for the fast support!
The fields are not required.
The content of these fields have been bulk imported (WP ALL IMPORT) 5 months ago. And we never faced this issue except since the last Metabox update.May be better with an image :
https://bddfs.elledesignstudios.com/wp-content/uploads/2020/06/bad-content-fields.png
Best regards
Eliodata
ParticipantHi Anh,
My question was not clear, sorry for my poor english. My user form is ok and works fine on admin, I'm just trying to display it and edit content front end.
The page "https://mydomain.com/author/testuser1" should display results for "testuser" and the page "https://mydomain.com/author/testuser2" sould display results for "testuser2". But it only displays empty forms.
How can I edit user forms front end please ? I mean choosing the profil I want and edit his content.
Have a nice week !
-
AuthorPosts