Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
|Sort by custom date field isn't working as expected.||2||5||hace 1 mes, 3 semanas|
|Force user to select suggested option from Google Address autocomplete||2||2||hace 1 mes, 3 semanas|
|Particular post disappears when filtering by custom taxonomy term||2||7||hace 2 meses, 3 semanas|
|Order and change number of related posts shown per page in admin area||2||2||hace 3 meses, 2 semanas|
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||hace 6 meses, 1 semana|
|CRED: blank/empty default value for taxonomy select field||2||4||hace 8 meses, 3 semanas|
|Access: displaying content template when user doesn't have read permissions||2||6||hace 10 meses, 2 semanas|
|How to trigger JQuery on form submission error||2||3||hace 1 año, 6 meses|
|Sort taxonomy terms by menu order||2||3||hace 1 año, 7 meses|
|User meta checkbox doesn't work inside conditional||2||3||hace 1 año, 8 meses|
|Possible to pass extra data to generic field?||2||2||hace 1 año, 11 meses|
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||hace 1 año, 12 meses|
|Show last page of view first||3||6||hace 2 años, 1 mes|
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||hace 2 años, 1 mes|
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||hace 2 años, 1 mes|