FuChan
Support threads created in the last 30 days: 0
Favorite Forum Topics
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Change file upload error text, add maximum upload file size
Started by: Marco
in: Types Community Support
Problem: I would like to use different text in the CRED form image upload error alert. I would like to add the maximum upload size to my own custom text. Solution: add_filter( 'gettext', 'better_ajax_upload_filesize_error', 20, 3); function better_ajax_upload_filesize_error( $translated_text, $text, $domain ) { if( $text == 'The file you uploaded it too large. You can upload files up to ' && $domain =='wp-cred' ){ $translated_text = "The file you attempted to upload is too large. You can upload files up to "; } return $translated_text; } |
2 | 8 | 7 years ago |
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
module for messaging system
Started by: FuChan in: Toolset Professional Support |
2 | 2 | 4 years, 7 months ago | ||
limit submission from post form
Started by: FuChan in: Toolset Professional Support |
2 | 3 | 4 years, 7 months ago | ||
shortcodes to change post status
Started by: FuChan in: Toolset Professional Support |
2 | 3 | 4 years, 7 months ago | ||
How to let the comments go to the account page automatically based on the same post author?
Started by: FuChan
in: Toolset Professional Support
Problem: How to let the comments go to the account page automatically based on the same post author? Solution: It needs custom codes, for example: Relevant Documentation: |
2 | 3 | 4 years, 7 months ago | ||
Access to comments
Started by: FuChan in: Toolset Professional Support |
2 | 7 | 4 years, 7 months ago | ||
access control
Started by: FuChan in: Toolset Professional Support |
2 | 3 | 4 years, 7 months ago | ||
field value in the search form
Started by: FuChan
in: Toolset Professional Support
Problem: Solution: However, the case is different here, in this case, you want to filter post type view using a user field, that's not possible natively. You can check an example on this article - how you can create a custom search for the user. Relevant Documentation: |
2 | 3 | 4 years, 8 months ago | ||
load user fields into archive
Started by: FuChan in: Toolset Professional Support |
1 | 2 | 4 years, 8 months ago | ||
How to update post excerpt field by custom field when I submit form?
Started by: FuChan
in: Toolset Professional Support
Problem: Solution: Excerpts are built using the Post Body and are part of the Post, hence you will need to manipulate that content with wp_update_post(), which is a WordPress API Function. To do this when submitting a Toolset Form, you can update your post within a cred_save_data() hook, where you should define a $variable with the content of the Custom Field from which you want to pull the data to update the Excerpt with. TIPP: Then, the $variable holding the value set in the Custom Field on the Form, can be used to update the Post Excerpt using wp_update_post() within the Toolset Forms Hook Here is an example of such custom code that takes a custom field value and updates the Post Title with it: To use it for Post Excerpt, you'd just target post_excerpt, instead of post_title, which is used in the example linked Relevant Documentation: https://developer.wordpress.org/reference/functions/get_post_meta/ https://www.php.net/manual/en/reserved.variables.post.php https://developer.wordpress.org/reference/functions/wp_update_post/ https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
2 | 3 | 4 years, 8 months ago | ||
Testimonials – Three Cell Slider
Started by: FuChan in: Toolset Professional Support |
2 | 3 | 4 years, 9 months ago | ||
date format
Started by: FuChan in: Toolset Professional Support |
2 | 5 | 4 years, 9 months ago | ||
How to display the repeatable fields in the view inside view.
Started by: FuChan in: Toolset Professional Support |
2 | 2 | 4 years, 9 months ago | ||
Further question to your reply #1448801
Started by: FuChan
in: Toolset Professional Support
Problem: Filter view by taxonomy terms using shortcode attribute. Solution: You can try taxonomy filter in to your post view, for example: Relevant Documentation: https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/ |
2 | 4 | 4 years, 10 months ago | ||
plugin conflict
Started by: FuChan
in: Toolset Professional Support
Problem: Fix the issue concerning the conflict of astra theme and Blocks plugin Solution: For Toolset Blocks plugin, you just need to replace the same file inside Blocks plugin. Relevant Documentation: https://toolset.com/errata/php-warning-when-using-astra-pro-plugin-and-toolset-views-or-blocks/ |
2 | 5 | 4 years, 10 months ago | ||
product visibility to specific user
Started by: FuChan in: Toolset Professional Support |
2 | 8 | 4 years, 10 months ago |