Hi, thanks for the solution, but now I have the following issues:
I have created the User Registration Form (lien caché), where the role assigned to users after the registration is a custom role called "Stato Base". After the user registration form submission the new user is redirect to the login page (lien caché). After the user login the users are redirected to a specific page to create a Profile CPT Post with a specific Form managed with View where the filter is "Seleziona i post che hanno come autore l' utente attuale registrato." and the View code is
And so, if the user don't have created the Profile CPT post, the user display the Form to create the Profile CPT post (lien caché the new page name will be mio-profilo). After the submission, the Profile CPT posts are not published but setted to "in revision", and the users are redirect to the page to add the photo (incontramici.inonda.tv/edit-user-profile/) but instead to see the form, I see the "Permission danied" message.
In Access all settings are ok...
Else, if the user have created a Profile CPT post before, in the lien caché (the new page name will be mio-profilo) the users should to see their own profiles, instead I have the Content Template with the layout that I have setted but without the custom fields values that the user have setted, and return mi this message "Il contenuto non verrà visualizzato perché produce un ciclo infinito.
Lo shortcode wpv-post-body è stato richiamato più di una volta con l'attributo view_template="modello-di-contenuto-perprofili" attraverso l'articolo "InOnda", attivando un ciclo infinito."
Why I have this issues and what shoul I do to solve them?
Hello. Thank you for contacting the Toolset support.
Well - as I understand you want to filter your view by loggedin user role - correct? If yes - I need to check why that form is not loaded.
Could you please tell me what access details I use to logged in user the role Stato Base?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Well - the access details you shared is of "assistenza" user who is admin.
I need to know the access details who is registered from frontend using registration page:
=> lien caché
I see there is a user "frullato" who is assigned the role "Stato Base" - so I need that user login, as you are filtering - correct? Or it should also allow the administrator to edit?
So when login: lien caché
- It should display the posts whose post author is user "frullato" - correct?
I need to know the access details who is registered from frontend using registration page:
=> lien caché;
Ok, can you allow me to add a private message to send the access details? But, if you want, you can try to create a new user.
I see there is a user "frullato" who is assigned the role "Stato Base" - so I need that user login, as you are filtering - correct? Or it should also allow the administrator to edit?
So, the administrator edit the Profile CPT post about the role "Stato Base" in the back end. And, for now the issue is only for "frullato", but if the issue is for every users?
So when login: lien caché
- It should display the posts whose post author is user "frullato" - correct?
So, if the Profile CPT post is not create, after login the users need to display the Create Profile CPT post Form, if the Profile CPT post is created than after login every users need to display their own Profile CPT post. Because the users can create only one their own Profile CPT post.
And also, I use Ultimate Membership Pro (UMP) to manage the membership. In UMP I have created 5 membership levels, where one of this is Free and the others are under payments.
So, in the UMP settings, I have setted that when a new user is registered, the system need to add to every new users the Free Level in both of the role "Stato Base". But the level is not assigned to new users. This because I use the Toolset Form for the users registration, and not the native UMP registration form.
There is a way to assign the Free Level to every new user with the role "Stato Base"?
But is not resolved the issue to display the Current Login User Profile CPT Post in Page...
In the attached image 1 you can see what I have...
In the attached image 2 you can see what I expected to have...
I assume we are talking about the URL in your website: lien caché
I have checked it in your website, here are what I found
1) You are using a post view in above page lien caché
it is querying "Profili" posts
in the view's loop there is a content template
2) and you are using Divi builder to design the content template: lien caché
I have tried to add post title shortcode in it: {!{wpv-post-title}!}
in front-end: lien caché
it display the current page title "Crea Profilo" instead of "Profili" post's title
So the problem is abnormal.
Please try these:
1) Make sure you are using the latest version of Toolset plugins + Divi theme(plugins)
2) In case it is a compatibility problem, please deactivate other plugins, and switch to original Divi theme , and test again
3) If the problem still persists, please provide a copy of your website in below private message box, I need to test and debug it in my localhost. https://toolset.com/faq/provide-supporters-copy-site/
You are using Divi builder to design the content template: lien caché
See above URL, I have added a row (Testo module) in the bottom: with below shortcodes:
{!{wpv-post-link}!} | {!{wpv-post-id}!}
It is displaying these in front-end:
Crea Profilo | 9719
You can see it here: lien caché
The result is current page information, but it should be able to output the current "Profili" post's in formation,
To verify the problem, you can put the same shortcode into View's loop here: lien caché
section "Editor del ciclo", just before content template shortcode:
[wpv-post-body view_template="modello-di-contenuto-per-mio-profilo"]
Test it in front-end again: lien caché
it outputs below "Profili" post's informations, for example:
assistenza | 9719