[Gelöst] Pass URL parameter in User Fields using custom shortcode
Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.
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.
This support ticket is created vor 5 Jahren, 11 Monaten. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
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.