Skip Navigation

[Resolved] Can I do a full text search on toolset taxonomy field

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 1 voice.

Last updated by davidm-13 1 month, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2803644

Tell us what you are trying to do?

I want to do a full text search on a taxonomy field and return a list of all taxonomies containing the text with a link to the custom post(s) where this taxonomy term appears. Is it possible to do a full text search on a taxonomy field? Is there an example of this you can point me to?

Thanks for any help

#2803659

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

You can add taxonomy filter as select dropdown, multiselect, radio button and as checkboxes.

There is no such feture available to apply text search on taxonomy names.

You may check the following link that may help you:
- https://stackoverflow.com/questions/13491828/how-to-amend-wordpress-search-so-it-queries-taxonomy-terms-and-category-terms

If you require more help for such custom requirement, you are always welcome to contact our certified partners:
- https://toolset.com/contractors/

#2803687

would it be possible to copy the taxonomy field to a toolset custom field and then apply a full text search to this custom field ?

#2803779

Minesh
Supporter

Languages: English (English )

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

Yes - that could be the option but you will have write custom code that should copy the related taxonomy term name/title to the custom field you will create for existing posts and post you will create in future.

There is no such feature available with Toolset, but you can use "save_post" hook to assign taxonomy term title when you add/update post in backend.
- https://toolset.com/documentation/customizing-sites-using-php/updating-types-fields-using-php/

Please check following related tickets that might help you:
- https://toolset.com/forums/topic/relationship-migration-synchronize-taxonomy-terms-across-related-cpts-part1/
- https://toolset.com/forums/topic/assign-default-category-to-a-custom-post-type/

More info:
- https://developer.wordpress.org/reference/hooks/save_post/
- https://developer.wordpress.org/reference/functions/wp_get_object_terms/
- https://developer.wordpress.org/reference/functions/wp_set_object_terms/

#2804281

Hi Minesh,
I've created a custom fields term group called "English plant names" with the following fields English name (single line), plant url (URL). I want to create a csv file to import the data. Please can you remind me what the headings and format of the csv file are.

Thanks

#2804339

Minesh
Supporter

Languages: English (English )

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

Well - you will have to create the post field group and add the custom field to post field group not the term field group and then assign this post field group to display with your post type.

#2804340

ok, thanks. What I want to know is if I create a csv file to import into this post field group that contains English name (single line) and plant url (URL) what is the format and headers of the csv file?

Thanks

#2804341

Minesh
Supporter

Languages: English (English )

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

Please check our official Doc and you can download the example file after reading all instructions on the following Doc:
- https://toolset.com/course-lesson/import-content-csv-importer-plugin/#case-example

#2804352

Minesh
Supporter

Languages: English (English )

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

#2805006
tools-cust-fields.JPG
tools-csv.JPG
allImport-step3.JPG

Hi Minesh,
Still having problems importing the custom fields - in allImport step 3 (image attached) how do i specify that I want to import wpcf-eng-name-search and wpcf-eng-name-search-url from the uploaded csv file - at the moment I'm only getting the title, the rest is blank.
I've attached images of the csv file I'm importing and the toolset custom fields to recieve the import.
Thanks for your help

#2805099

Hi Minesh, I misread the instructions and tried to upload using all import instead of csv uploader plugin. All ok now.

Thanks