Skip Navigation

[Resolved] The [wpv-user field="user_url"] shortcode is not working on Views.

This support ticket is created 3 years, 11 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Shane 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1962997

Hi

The [wpv-user field="user_url"] shortcode is not working on Views.

Do you have any solution for this?

Right Now we are using this

hidden link field="user_login"]

Problem with this is if username has space on it like "Victor Kipiani" the url will display as hidden link and return to 404

How can we display the user url in views

Thanks

#1963097

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Wilbo,

Thank you for getting in touch.

For this case I would recommend trimming out the spaces when passing the shortcode into the URL. You can do this by using this shortcode snippet i've written below.

// Add Shortcode
function cust_remove_space( $atts , $content = null ) {

	return str_replace(" ", "", $content);

}
add_shortcode( 'cust_remove_space', 'cust_remove_space' );

Add it to the Toolset custom code section in Toolset->Settings->Custom Code and ensure that it's activated. Once you've done this you can trigger the shortcode like this.


[cust_remove_space][wpv-user field='user_login'][/cust_remove_space]

Please let me know if this helps.
Thanks,
Shane