Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
|Sort by custom date field isn't working as expected.||2||5||4 months, 3 weeks ago|
|Force user to select suggested option from Google Address autocomplete||2||2||4 months, 3 weeks ago|
|Particular post disappears when filtering by custom taxonomy term||2||7||5 months, 3 weeks ago|
|Order and change number of related posts shown per page in admin area||2||2||6 months, 2 weeks ago|
cred-delete-relationship link not displaying for custom role
I'm trying to use cred-delete-relationship shortcode to unlink event and gallery posts in a many-many relationship. I have the shortcode set up inside a view as the docs say to do:
[cred-delete-relationship role_items='$fromViews' relationship='gallery-event' redirect='self']Delete[/cred-delete-relationship]
Regular "Administrator" users can see and use the link just fine, but my custom "Gallery Manager" user cannot. I've given the Gallery Manager role the "manage_options" which I've read was necessary.
In order to delete the relationship with shortcode [cred-delete-relationship]: Acceptance criteria:
- when you visit the post in the frontend as admin: you should see a list of post related entities AND a button to delete the relationship between each of them.
- when you visit the post in the frontend as a user that HAS NO permissions to edit one of the post types: you should see a list of post related entities and NO button.
|2||3||9 months, 2 weeks ago|
|CRED: blank/empty default value for taxonomy select field||2||4||11 months, 3 weeks ago|
|Access: displaying content template when user doesn't have read permissions||2||6||1 year, 1 month ago|
|How to trigger JQuery on form submission error||2||3||1 year, 9 months ago|
|Sort taxonomy terms by menu order||2||3||1 year, 10 months ago|
|User meta checkbox doesn't work inside conditional||2||3||1 year, 11 months ago|
|Possible to pass extra data to generic field?||2||2||2 years, 2 months ago|
Preset value of Taxonomy filter dropdown
Is there some event I need to trigger to get Views to update the displayed results?
You can try to modify your JS codes as below:
|2||3||2 years, 2 months ago|
|Show last page of view first||3||6||2 years, 4 months ago|
Problem setting minimum image size on CRED form
Problem: How are image uploads affected by the changes in Toolset Forms 2.4 and what does it mean for validating the image uploads?
Solution: Prior to Forms 2.4 a bespoke ajax uploader was used to pre-upload images (i.e. upload images as soon as selected rather than waiting for the form submission).
Since Forms 2.4 the native WP uploader is used for logged-in users (subject to the settings in the form). It cannot be used for guest users, for whom images are uploaded along with the form submission.
When using the native WP uploader the cred_form_ajax_upload_validate hook can still be used, otherwise the cred_form_validate hook should be used.
Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_ajax_upload_validate
|2||3||2 years, 4 months ago|
Update and create Repeating Fields programmatically
Problem: How can I update or create Repeating fields using WordPress's API to manipulate meta fields (get_post_meta/update_post_metae/add_post_meta)?
Solution: Toolset doesn't offer a specific API for this, and our Support Guidelines don't allow direct support on such custom code, we can, however, give an example that will help understand how repeating fields (not repeatable field groups, but repeating fields) can be retrieved and updated.
With repeating fields we have meta key, meta value, and the position of each of the values, to consider in our code.
To update, or post such fields, you need not only to pass an array of those values to the field but also the position of each item in the repeating field.
Below link holds a full example code, that can be used as a starting point for further customization.
|2||3||2 years, 4 months ago|