Mario
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Remove "Operation completed successfully" message after Ajax submission
Iniciado por: michaelB-31 en: Toolset Professional Support |
2 | 3 | hace 7 años |
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Warnings/Errors Deprecated: Required parameter…..
Iniciado por: Mario
en: 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 | hace 3 años, 3 meses | ||
The description of a post reference field is not displayed in backend admin form
Iniciado por: Mario en: Toolset Professional Support |
2 | 3 | hace 3 años, 5 meses | ||
Distance selection disappears if "Text and placeholders for input" is set
Iniciado por: Mario en: Toolset Professional Support |
2 | 3 | hace 3 años, 5 meses | ||
conditional
Iniciado por: Mario en: Toolset Professional Support |
2 | 14 | hace 3 años, 8 meses | ||
rendering alternative background image, if it doesn´t exist
Iniciado por: Mario
en: Toolset Professional Support
Problem: Solution: |
2 | 3 | hace 3 años, 9 meses | ||
use shortcode in Toolset blocks
Iniciado por: Mario en: Chat Support |
1 | 7 |
hace 3 años, 9 meses
|
||
Show fitting post in "View with"-Field of Gutenberg, while edit content template
Iniciado por: Mario en: Toolset Professional Support |
1 | 4 | hace 3 años, 9 meses | ||
Error in toolset-common twig_extensions
Iniciado por: Mario
en: 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 | hace 5 años, 4 meses | ||
Content Templates with Elementor?
Iniciado por: Mario en: Toolset Professional Support |
5 | 10 | hace 6 años | ||
Connect field group to parent with php
Iniciado por: Mario en: Toolset Professional Support |
1 | 2 | hace 6 años, 2 meses | ||
Align Layout / CSS with ddl-full-width-row for mobile resolution
Iniciado por: Mario
en: Toolset Professional Support
Problem: Solution: We actually have a way to do this and the instructions can be seen below. |
2 | 7 | hace 6 años, 10 meses | ||
Stop using layouts for pages after wp_insert_post
Iniciado por: Mario en: Toolset Professional Support |
2 | 5 | hace 6 años, 10 meses | ||
Refused to execute script because its MIME Type
Iniciado por: Mario en: Toolset Professional Support |
1 | 2 | hace 6 años, 11 meses | ||
How to save repeating fields with update_post_meta
Iniciado por: Mario
en: 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 | hace 6 años, 12 meses | ||
Rrename and move files after upload and prevent adding to media library
Iniciado por: Mario
en: 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 | hace 6 años, 12 meses |