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
|Sort by custom date field isn't working as expected.||2||5||Il y a 4 mois et 3 semaines|
|Force user to select suggested option from Google Address autocomplete||2||2||Il y a 4 mois et 3 semaines|
|Particular post disappears when filtering by custom taxonomy term||2||7||Il y a 5 mois et 3 semaines|
|Order and change number of related posts shown per page in admin area||2||2||Il y a 6 mois et 2 semaines|
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||Il y a 9 mois et 2 semaines|
|CRED: blank/empty default value for taxonomy select field||2||4||Il y a 11 mois et 3 semaines|
|Access: displaying content template when user doesn't have read permissions||2||6||Il y a 1 an et 1 mois|
|How to trigger JQuery on form submission error||2||3||Il y a 1 an et 9 mois|
|Sort taxonomy terms by menu order||2||3||Il y a 1 an et 10 mois|
|User meta checkbox doesn't work inside conditional||2||3||Il y a 1 an et 11 mois|
|Possible to pass extra data to generic field?||2||2||Il y a 2 années et 2 mois|
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||Il y a 2 années et 2 mois|
|Show last page of view first||3||6||Il y a 2 années et 4 mois|
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||Il y a 2 années et 4 mois|
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||Il y a 2 années et 4 mois|