Mario
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Remove "Operation completed successfully" message after Ajax submission
Commencé par : michaelB-31 dans : Toolset Professional Support |
2 | 3 | Il y a 6 années et 5 mois |
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Warnings/Errors Deprecated: Required parameter…..
Commencé par : Mario
dans : Toolset Professional Support
Problem: When Toolset plugins are active I see in the error logs several PHP deprecation notices related to required parameters following optional parameters, similar to this: Deprecated: Required parameter $in follows optional parameter $method in \wp-content\plugins\wp-views\embedded\inc\wpv-query-debug.class.php on line 417 Solution: |
3 | 5 | Il y a 2 années et 8 mois | ||
The description of a post reference field is not displayed in backend admin form
Commencé par : Mario dans : Toolset Professional Support |
2 | 3 | Il y a 2 années et 9 mois | ||
Distance selection disappears if "Text and placeholders for input" is set
Commencé par : Mario dans : Toolset Professional Support |
2 | 3 | Il y a 2 années et 10 mois | ||
conditional
Commencé par : Mario dans : Toolset Professional Support |
2 | 14 | Il y a 3 années et 1 mois | ||
rendering alternative background image, if it doesn´t exist
Commencé par : Mario
dans : Toolset Professional Support
Problem: Solution: |
2 | 3 | Il y a 3 années et 1 mois | ||
use shortcode in Toolset blocks
Commencé par : Mario dans : Chat Support |
1 | 7 |
Il y a 3 années et 1 mois
|
||
Show fitting post in "View with"-Field of Gutenberg, while edit content template
Commencé par : Mario dans : Toolset Professional Support |
1 | 4 | Il y a 3 années et 1 mois | ||
Error in toolset-common twig_extensions
Commencé par : Mario
dans : Toolset Professional Support
Problem: Fatal error because of Twig dependencies. Fatal error: Uncaught TypeError: Argument 1 passed to Twig\Environment::addFunction() must be an instance of Twig\TwigFunction, string given Solution: Update to Types 3.3.3 |
3 | 11 | Il y a 4 années et 8 mois | ||
Content Templates with Elementor?
Commencé par : Mario dans : Toolset Professional Support |
5 | 10 | Il y a 5 années et 5 mois | ||
Connect field group to parent with php
Commencé par : Mario dans : Toolset Professional Support |
1 | 2 | Il y a 5 années et 7 mois | ||
Align Layout / CSS with ddl-full-width-row for mobile resolution
Commencé par : Mario
dans : Toolset Professional Support
Problem: Solution: We actually have a way to do this and the instructions can be seen below. |
2 | 7 | Il y a 6 années et 2 mois | ||
Stop using layouts for pages after wp_insert_post
Commencé par : Mario dans : Toolset Professional Support |
2 | 5 | Il y a 6 années et 3 mois | ||
Refused to execute script because its MIME Type
Commencé par : Mario dans : Toolset Professional Support |
1 | 2 | Il y a 6 années et 4 mois | ||
How to save repeating fields with update_post_meta
Commencé par : Mario
dans : Toolset Professional Support
Problem: When I save repeating field values with update_post_meta, all the repeating fields get set to the value of the last original repeating field in the database. I'm using the following code: $fields = get_post_meta($post_id, 'wpcf-field-repeating'); .... some changes to $fields ... foreach ($fields as $single_value ) { update_post_meta($post_id, 'wpcf-field-repeating', $single_value); Solution: Be sure to provide the 4th parameter to the update_post_meta function to update a single instance of a repeating field, otherwise all instances will be set to the same value. Example: $prev_value = (previous value of this instance); update_post_meta($post_id, 'wpcf-field-repeating', $single_value, $prev_value); Another option would be to delete all values of this repeating field first, then insert all the new values. Relevant Documentation: https://codex.wordpress.org/Function_Reference/update_post_meta#Parameters |
3 | 5 | Il y a 6 années et 4 mois | ||
Rrename and move files after upload and prevent adding to media library
Commencé par : Mario
dans : Toolset Professional Support
Problem: After successfull uploads, i want to move and rename the files to a different file-directory (with a little bit php-code via the cred_submit_complete hook). Don´t want to use hooks like "wp_handle_upload_prefilter", "upload_dir", or "cred_form_ajax_upload_validate". After that i have to update the custom repeating field with the new renamed file-paths and file-names. Unfortunatelly the upload-function by toolset will add the files to the media library automatically and i don´t want that. So my two questions are 1. Is the hook the right place for renaming, moving and updating uploaded files? Solution: Q2) How do i prevent to attach files to the media library? For example, use action hook "cred_submit_complete" to trigger a custom PHP function, in this PHP function, get the file/image field value For your reference. Relevant Documentation: |
2 | 4 | Il y a 6 années et 4 mois |