Skip Navigation

[Résolu] CRED Form: Only show taxonomy terms created by current user

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 réponses, has 2 voix.

Last updated by davidS-53 Il y a 2 années et 3 mois.

Assigned support staff: Minesh.

Auteur
Publications
#1256729

I have a custom taxonomy called "location". In a CRED form, is it possible to only list out the "locations" that the current user has created? Something equivalent/behaving similarly to author="$current"?

If not, would you have any suggestions as to how to achieve that? Perhaps a custom field that stores the user ID of whoever created it, and filter the select field based on that? Any tips would be appreciated.

#1256947

Minesh
Supporter

Languages: Anglais (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - there is no option available to display the current author terms. You are welcome to submit the feature request for the same:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

However, if you know how to grab the IDs of current user terms, you may try to delete it using the custom JS code. Please check the following link:
=> https://toolset.com/forums/topic/exculde-one-category-from-search-seect-menu/#post-528289
(This is not a complete solution but at least you will get idea how you can delete it using custom JS code)

#1257581

Thanks Minesh, that looks like it should do just fine.