martijnH
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 |
---|---|---|---|---|---|
View with child post type: hide posts where parent is private/concept
Started by: martijnH in: Toolset Professional Support |
4 | 7 | 6 years, 1 month ago | ||
Toolset commerce: product depending on userrole
Started by: martijnH
in: Toolset Professional Support
Problem: I have a Commerce Form that should add different Products to the User's cart based on their assigned role on the site. One role should receive a free Product, and the other role should receive a paid Product. Solution: In the Form editor, choose the option "Always use the same product regardless of inputs". Select the paid product here to use as the default. Then add this custom code to your child theme's functions.php file: add_filter( 'cred_commerce_add_product_to_cart', 'different_product_by_role', 10, 3 ); function different_product_by_role( $product_id, $form_id, $post_id ) { global $current_user; $user_roles = $current_user->roles; if ( in_array('klant_abonnement', (array) $user_roles) && $form_id == 12345 ) { $product_id = 45678; } return $product_id; } Replace 12345 with the numeric ID of this Commerce Form, and replace 45678 with the numeric ID of the free Product for klant_abonnement Users. Relevant Documentation: |
2 | 3 | 6 years, 3 months ago | ||
wpv-current-user info="role" not always working (depending on db value)
Started by: martijnH in: Toolset Professional Support |
2 | 2 | 6 years, 5 months ago | ||
Automate importing content from csv with post relationships
Started by: martijnH in: Toolset Professional Support |
2 | 2 | 6 years, 6 months ago | ||
Views is repeating a replace (from another plugin)
Started by: martijnH
in: Toolset Professional Support
Problem: I use SEO Smart Links (https://nl.wordpress.org/plugins/seo-automatic-links/), which replaces (on the fly) keywords in a post with a link. In this plugin you attach keywords to internal urls and internal links are created automatically. This is in favor of SEO. Normaly this plugin only replaces one occurance of a keyword (screenshot 1). This number is adjustbale, but I have set it to 1. With Views enabled the replace function is repeated and replaces a second occurance of this keyword (screenshot 2). This is not wanted. When I set the adjustable number too 2, 4 keywords are replaced (instead of 2). How can I make Views not do this? Solution: It seems that filter from "seo-automatic-links" plugin have take effect on the content twice, and I have done below modification in your website: Change the codes from: [wpv-post-body view_template="None"] To: [wpv-post-body view_template="None" suppress_filters="true"] Please test again check if it is fixed or not, Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body suppress_filters (opt): 'true' | 'false' (default) If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed, when retrieving the post body. |
2 | 8 | 6 years, 8 months ago | ||
Toolset trying to load script in /plugins/types/library/toolset/ > 404
Started by: martijnH in: Toolset Professional Support |
2 | 4 | 7 years, 1 month ago | ||
Adding author field to postrelations tab on parent post
Started by: martijnH in: Toolset Professional Support |
2 | 4 | 7 years, 3 months ago | ||
Assign normal user as author of a custom post
Started by: martijnH
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution with reply here Relevant Documentation: |
2 | 3 | 7 years, 3 months ago | ||
Archive page with editable page description on top + featured image
Started by: martijnH in: Toolset Professional Support |
2 | 3 | 7 years, 4 months ago | ||
Using custom date/time field in Grafity forms selectbox (dynamic populate)
Started by: martijnH in: Toolset Professional Support |
2 | 5 | 7 years, 6 months ago |