[Resolved] Pass URL parameter in User Fields using custom shortcode
This thread is resolved. Here is a description of the problem and solution.
Problem:
Pass URL parameter in User Fields using custom shortcode
Solution:
When you use custom shortode as Types shortcode's attribute argument, you need to register the custom shortcode at:
=> Toolset => Settings => Frontend content Tab => Third-party shortcode arguments.
Hello,
I try to create a user profile page. This page should show the current user details by default but if the user is an admin it should show the data of an id.
I tried to pass an id parameter through the URL and wrote a shortcode:
Than i tried to implement this in the view:
[toolset_access role="Administrator,Super User" operator="allow"]
[wpv-user field="user_email" id="[get_url_param]"]
[/toolset_access]
[toolset_access role="Administrator,Super User" operator="deny"]
[wpv-user field="user_email"]
[/toolset_access]
Could you please share the problem URL where you are trying to display the email?
*** 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.