mikeH-3
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Conditional statement for usermeta
1
2
Started by: mikeH-3
in: Toolset Professional Support
Problem: Perform a conditional action based on the user role based on the user name that was provided in the URL. Solution: In order to get this done I would recommend the use of a custom shortcode. To get the user role from the user name in the url you can use the shortcode below. // Add Shortcode function wp_get_user_role( $atts ) { // Attributes $atts = shortcode_atts( array( 'username' => '', ), $atts ); $user_meta=get_user_by('login',$atts['username']); $user_roles=$user_meta->roles; return $user_roles[0]; } add_shortcode( 'wp_get_user_role', 'wp_get_user_role' ); The shortcode is used like this Where you can use the [wpv-search-term param='url-param'] to get the username from the param. From there you can add this shortcode to the conditional statement. |
2 | 18 | 5 years, 6 months ago | ||
Conditional statement for usermeta not working
1
2
3
Started by: mikeH-3 in: Toolset Professional Support |
2 | 32 | 5 years, 7 months ago | ||
Display userid publically of current post
Started by: mikeH-3 in: Toolset Professional Support |
2 | 2 | 5 years, 7 months ago | ||
Custom field outside loop
Started by: mikeH-3 in: Toolset Professional Support |
2 | 4 | 5 years, 7 months ago | ||
Post date not updating post
Started by: mikeH-3 in: Toolset Professional Support |
2 | 3 | 5 years, 8 months ago | ||
Get value from inside loop
Started by: mikeH-3
in: Toolset Professional Support
Problem: I have a View that shows an item by a particular author. The author's username is included as a URL parameter for filtering. Inside the loop I can access the author's information but I would like to access that same information outside the loop in another area of the page. Solution: You can use the wpv-search-term parameter to access any URL parameter, then use that value to set the user_name attribute in a Types usermeta field shortcode: [types usermeta='giving-embed-code' output='raw' user_name='[wpv-search-term param="church"]'][/types] Relevant Documentation: |
2 | 5 | 5 years, 8 months ago | ||
Frontend forms category post
Started by: mikeH-3 in: Toolset Professional Support |
2 | 4 | 5 years, 8 months ago | ||
Create category per user
Started by: mikeH-3 in: Toolset Professional Support |
2 | 4 | 5 years, 8 months ago | ||
Redirect to view instead of post
Started by: mikeH-3 in: Toolset Professional Support |
2 | 4 | 5 years, 8 months ago | ||
Types 3.2.5 missing fields
Started by: mikeH-3
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 5 years, 10 months ago | ||
Rss feed not showing all items
Started by: mikeH-3 in: Toolset Professional Support |
2 | 2 | 5 years, 10 months ago | ||
Custom search not returning the right results
Started by: mikeH-3 in: Toolset Professional Support |
2 | 10 | 5 years, 10 months ago | ||
File paths
Started by: mikeH-3 in: Toolset Professional Support |
2 | 2 | 6 years, 1 month ago | ||
Youtube url – related videos
Started by: mikeH-3 in: Toolset Professional Support |
2 | 2 | 6 years, 3 months ago | ||
embedding calendar conflicts with editing cred form
Started by: mikeH-3
in: Toolset Professional Support
Problem: I am trying to edit a post but the edit post Form does not appear. The URL for the edit post Form includes a parameter "cred-edit-form". Solution: The syntax for displaying an Edit Post Form has changed a bit, and the new URL structure does not use the same URL parameters. Add the edit Form to a blank Content Template, then recreate the edit post link to update to the new syntax. Relevant Documentation: |
2 | 9 | 6 years, 3 months ago |