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 |
---|---|---|---|---|---|
Errors with Cred Commerce
Started by: daveG-7 in: Toolset Professional Support |
|
2 | 7 | 5 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 | 5 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 | 5 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 | 6 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 | 6 years, 5 months ago |