kelvinL-2
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 |
---|---|---|---|---|---|
Cannot render the shortcode in View
Started by: kelvinL-2
in: Toolset Professional Support
Problem: The issue here is that the user had written up a custom shortcode below. function get_dealer_url( $atts) { global $post; $args = array( 'posts_per_page' => 1, 'post_type'=> 'dealer', 'author_name' => $atts('author') ); $myposts = get_posts( $args ); foreach( $myposts as $post ) { setup_postdata($post); return the_permalink(); } } add_shortcode('get_dealer_url', 'get_dealer_url'); However their shortcode was not rendering on the frontend. Solution: Issues like these actually requires that you debug the shortcodes. Now since this is custom coding we don't normally debug custom codes. However since this was a simple implementation a little discretion was used. In our Toolset Custom Code editor, your shortcode can't be activated if an error is detected and this was the case with this user. Checking the code we can see that the user has 'author_name' => $atts('author') Where $atts is an associative array. Now the correct way to slice this array with the key is $atts['author'] using square brackets instead of the round ones. So I would recommend going through your code to ensure that the correct calls are being made |
|
2 | 14 | 5 years, 10 months ago | |
Make view to list all user info for admin use
Started by: kelvinL-2
in: Toolset Professional Support
Problem: I would like to make a custom search View for Users. Solution: There is no way to create a parametric search View for Users in the current system. Instead, you can create a proxy post type and use that in a custom search instead. Relevant Documentation: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/ |
|
2 | 3 | 5 years, 10 months ago | |
Putting same random value to several generic field
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 5 | 5 years, 10 months ago | |
Same content but different CSS
Started by: kelvinL-2
in: Toolset Professional Support
Problem: The issue here is that the user had 2 forms that are on 2 different pages but the forms are being rendered slightly different. Solution: In this users case they were using a custom template for their pages, however one form was on a page that was assigned to a different template that the other. Simply setting both pages to the same template resolved the issue as the user had their custom css in only one of the templates. |
|
3 | 11 | 5 years, 10 months ago | |
Cannot find the Access Control from page edit
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 6 | 5 years, 10 months ago | |
Cannot change the Year selection as empty on first time view
Started by: kelvinL-2 in: Toolset Professional Support |
|
3 | 9 | 5 years, 10 months ago | |
Cannot query the 3rd party custom post
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 4 | 5 years, 11 months ago | |
Passing current author as shortcode attribute
Started by: kelvinL-2
in: Toolset Professional Support
Problem: The issue here is that the user had their view filter to get the value from a shortcode attribute, but wanted to pass the current author into that shortcode attribute. Solution: This can be done by doing the following. [wpv-view name="sales-dashboard-dealer" salesrep="[wpv-current-user info='id']"] Where the [wpv-current-user info='id'] will get the ID of the current user. |
|
3 | 9 | 5 years, 11 months ago | |
Assigning the user role relationship
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 6 | 5 years, 11 months ago | |
Import specific role user into CRED form for selection
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 9 | 5 years, 11 months ago | |
Cannot show the post edit link in View
Started by: kelvinL-2 in: Toolset Professional Support |
1 | 2 | 5 years, 11 months ago | ||
Request user to fill existing password and then change the password
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 3 | 5 years, 11 months ago | |
Toolset doesn't check the passwords are identical
Started by: kelvinL-2 in: Toolset Professional Support |
|
3 | 4 | 5 years, 11 months ago | |
What capabilities need for edit user profile
Started by: kelvinL-2
in: Toolset Professional Support
Problem: Solution: |
|
2 | 5 | 5 years, 11 months ago | |
Translate the redirect message after CRED submission
Started by: kelvinL-2
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution, in this case with the following reply: Relevant Documentation: |
|
2 | 3 | 5 years, 11 months ago |