daveG-7
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 |
---|---|---|---|---|---|
Help with conditional output
Started by: daveG-7
in: Toolset Professional Support
Problem: Solution: You can find proposed solution in this case with the following reply: Relevant Documentation: |
|
2 | 3 | 11 months ago | |
Layout being removed when post is being published through Woocommerce
1
2
Started by: daveG-7 in: Toolset Professional Support |
|
2 | 18 | 3 years, 2 months ago | |
CRED Commerce sending users to empty cart instead of checkout
1
2
Started by: daveG-7 in: Toolset Professional Support |
|
3 | 23 | 3 years, 4 months ago | |
Posts created through Post Form that are in draft status still send emails
Started by: daveG-7
in: Toolset Professional Support
Problem: If a post is trashed, how can those notifications be turned off? Solution: Here's an example of such code: function ts_remove_expiry_notification( $post_id ){ $notification = get_post_meta( $post_id, '_cred_post_expiration_notifications' ); if ( !empty( $notification ) ){ delete_post_meta( $post_id, '_cred_post_expiration_notifications' ); } } add_action( 'wp_trash_post', 'ts_remove_expiry_notification' ); |
|
2 | 7 | 3 years, 5 months ago | |
Change a user’s role with Cred Commerce on payment and post expiration
Started by: daveG-7
in: Toolset Professional Support
Problem: Solution: Reverting the role when the related post expires is slightly trickier, as there is no Toolset API hook for when a post expires. In this case, when a post expires it is changed to draft status. You can use the standard WP hooks that are triggered when changing a custom post status to draft (e.g. the draft_project hook for a project post type) to check when a post of the relevant type is changed to draft status, and then check whether the post expiration time has passed (meaning the change to draft was likely triggered by the expiration) using the value stored in a hidden custom field '_cred_post_expiration_time' that can be retrieved with get_post_meta. Relevant Documentation: |
|
2 | 5 | 3 years, 5 months ago | |
Errors with Cred Commerce
Started by: daveG-7 in: Toolset Professional Support |
|
2 | 7 | 3 years, 5 months ago | |
CRED post form that requires payment going to blank cart page instead
1
2
Started by: daveG-7 in: Toolset Professional Support |
|
3 | 25 | 3 years, 7 months ago | |
Forms are no longer editable
Started by: daveG-7
in: Toolset Professional Support
Problem: Solution: I suspect that the issue here is being caused by a plugin conflict. What I would recommend that you do is to temporarily disable the non-toolset plugins and check again to see if the form editor show up again. In this users case the issue was being caused by the Accordions plugins. |
|
2 | 7 | 3 years, 7 months ago | |
Form returning “Form type and post type do not match”
Started by: daveG-7
in: Toolset Professional Support
Problem: I have a working form to edit a users post, linked from the users account page. I am trying to add a form to renew the post, which is very similar. However, when I try to test it, I get the error: "Form type and post type do not match" Solution: I assume we are talking about a Toolset form for editing post, you are going to edit the specific post depends on the URL parameter "post_ids". If it is, you can get the URL parameter value with shortcode [wpv-search-term], for example: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term And pass it to Toolset form shortcode and test again, for example: Relevant Documentation: https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_form |
|
2 | 3 | 4 years, 4 months ago | |
Conditional Output based on post relationships
Started by: daveG-7
in: Toolset Professional Support
Problem: Solution: /** * Register connections shortcode * * <a href="https://toolset.com/forums/users/att/" rel="nofollow" tabindex="79">@att</a> (string) relationship : post relationship slug * @return count of connected posts */ add_shortcode( 'connections', function( $atts = [] ){ // provide defaults $atts = shortcode_atts( array( 'relationship' => '', ), $atts ); global $post; $count = 0; $relationship = toolset_get_relationship( $atts['relationship'] ); if ( $relationship ) { $parent = $relationship['roles']['parent']['types'][0]; $child = $relationship['roles']['child']['types'][0]; $type = $post->post_type; $origin = ( $parent == $type ) ? 'parent' : 'child'; // Get connected posts $connections = toolset_get_related_posts( $post->ID, $atts['relationship'], $origin, 9999, 0, array(), 'post_id', 'other', null, 'ASC', true, $count ); } return $count; }); You need to specify the relationship slug like so: [connections relationship='cocktail-spirit'] And the custom shortcode will need registering at Toolset > Settings > Front-end Content to be able to use it in wpv-conditional shortcodes. Relevant Documentation: |
|
3 | 6 | 4 years, 5 months ago | |
Searching user fields
Started by: daveG-7
in: Toolset Professional Support
Problem: Is there a way to create a parametric search for users ? Solution: Unfortunately parametric search is still restricted to posts only but I do see on our feature requests where our developers have decided to add it. |
|
3 | 4 | 4 years, 5 months ago | |
Redirecting login form based on passed URL parameters
Started by: daveG-7 in: Toolset Professional Support |
|
2 | 6 | 4 years, 7 months ago | |
Layouts in Access error templates not showing footer correctly
Started by: daveG-7 in: Toolset Professional Support |
|
2 | 15 | 4 years, 8 months ago | |
In Beta release, problems adding post relationships through post backend
Started by: daveG-7
in: Toolset Professional Support
Problem: Compatibility problem between Types Beta plugin with theme "Stockholm", try to connect an existing post to a currently edited post, and have the Stockholm Theme active, then you cannot save this connection as the save button is disabled. Solution: This is fixed Types 3.0, you can download it here: Relevant Documentation: |
|
2 | 8 | 4 years, 8 months ago | |
First name field in notification email stopped working
Started by: daveG-7
in: Toolset Professional Support
Problem: Shortcode in Toolset form email notification does not work, for example: Solution: It is a known bug, It is fixed in next stable version of CRED(Toolset Form) plugin 2.1. Relevant Documentation: |
|
3 | 12 | 4 years, 9 months ago |