PiotrO586
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Hide Toolset buttons from the post content rich text editor for non-admins
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: /** * Remove Toolset buttons on front-end editors * which appear for role author+ when insert * media option set on CRED forms * * The filters work globally, so you need * to specify the pages where the * CRED form is added */ function remove_toolset_buttons(){ // $post not available with init hook $postID = url_to_postid( $_SERVER['REQUEST_URI'] , '_wpg_def_keyword', true ); $target_pages = array( 10, 25, 66 ); // Edit for pages with CRED forms if ( in_array( $postID, $target_pages ) ) { // remove the Fields and Views button add_filter( 'toolset_editor_add_form_buttons', '__return_false' ); // remove the CRED button add_filter( 'toolset_cred_button_before_print', '__return_false' ); // remove the Access button for certain roles add_filter( 'toolset_editor_add_access_button', function(){ $roles = array( 'author', 'subscriber' ); return $roles; } ); } } add_action( 'init', 'remove_toolset_buttons' ); |
2 | 5 | Il y a 6 années et 6 mois | ||
"There was an error uploading your file" when uploading image
Commencé par : PiotrO586 in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 6 mois | ||
Limit parent posts in Form select field to user’s own posts
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | Il y a 6 années et 7 mois | ||
Require first and last name in a User Form
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: I would like to make the first_name and last_name fields required in a User (CRED) Form, and I would like to make the error message translatable. The code I have doesn't seem to be working. Solution: add_filter('cred_filter_field_before_add_to_form', 'required_user_fields_func', 10, 2); function required_user_fields_func($field, $computed_values){ if(in_array($field['id'], array('first_name', 'last_name'))){ $field['data'] = is_array($field['data']) ? $field['data'] : array(); $field['data']['validate']['required'] = array ( 'active' => 1, 'value' => 1, 'message' => __('This field is required', 'your-theme-context'); ); } return $field; } |
2 | 6 | Il y a 6 années et 7 mois | ||
Accordion and Forms
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: ( function( $ ) { $( document ).ready( function(){ let url = new URL(location.href); let success = url.searchParams.get("_success_message"); if ( success ) { $(".panel-group .panel:nth-child(2) a").click(); } }); })( jQuery ); |
2 | 5 | Il y a 6 années et 7 mois | ||
Numeric field updown buttons
Commencé par : PiotrO586 in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 7 mois | ||
Archive to show only posts having parents – Types 3.0
Commencé par : PiotrO586 in: Toolset Professional Support |
2 | 5 | Il y a 6 années et 7 mois | ||
Check if parent post exists
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: For example: [wpv-conditional if="( '[wpv-post-id item="@relationship-slug.parent"]' ne '' )"] parent exists [/wpv-conditional] You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 8 | Il y a 6 années et 7 mois | ||
Product parent post issue
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: When I include a Content Template shortcode or a wpv-woo-display-tabs shortcode, information from the current post is displayed instead of information from the parent post. Solution: This issue has been resolved in the latest version of Toolset plugins. |
2 | 7 | Il y a 6 années et 7 mois | ||
Hyperlinking repeatable fields in a carousel
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 5 | Il y a 6 années et 7 mois | ||
Add/edit multilingual content using CRED forms
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 3 | Il y a 6 années et 7 mois | ||
[wpv-item] and spaces
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Remove blank space within Views loop. Solution: You can try to merge all codes into one single line, see the solution here: Relevant Documentation: |
2 | 3 | Il y a 6 années et 8 mois | ||
Archive to show only posts having parents
Commencé par : PiotrO586 in: Toolset Professional Support |
2 | 3 | Il y a 6 années et 8 mois | ||
CRED form with uploading files
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 5 | Il y a 6 années et 8 mois | ||
Layout Theme Options changes are not shown on the front-end until the post is updated in wp-admin
Commencé par : PiotrO586
in: Toolset Professional Support
Problem: The issue here is that Layouts setting to remove the header of the page is not working. Solution: To remove the header title you can use the css below. .entry-header{ display:none; } |
2 | 12 | Il y a 6 années et 8 mois |