Problem:
The issue here is that the user was doing a comparison between the post title and the user information however the conditional code would not work since the case is different for each.
Solution:
You can actually use the strtolower() php function to do this. I went ahead and wrapped this in a shortcode for you to use.
// Add Shortcode function lowercase( $atts ) { // Attributes $atts = shortcode_atts( array( 'string' => '', ), $atts ); return strtolower($atts['string']); } add_shortcode( 'lowercase', 'lowercase' );
Add this to the Toolset custom code section in Toolset -> Settings -> custom code and activate it. The next thing you need to do is add it to the views 3rd party shortcode arguments in toolset->settings-> frontend.
An example usage is
[lowercase string="[wpv-current-user info='login']"]
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)
This topic contains 3 replies, has 2 voices.
Last updated by 5 years, 7 months ago.
Assisted by: Shane.