Skip Navigation

[Resolved] Add Toolset Custom Fields to Algolia

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#630738

Tell us what you are trying to do?

I'm trying to add the Toolset custom fields to the Algolia search engine index.

Is there any documentation that you are following?

There is no documentation but I'm guessing a similar approach to the ACF setup could be used for Toolset: hidden link

I noticed that ACF has the get_field function to make this possible. Is there something similar for ACF? Any other suggestions are much appreciated!

#630829

Hello,

Here is my suggestions:

Types plugin will add pre-pend "wpcf-" before the field slug, for example, the custom field "bio" created with Types plugin, in database, the field slug is "wpcf-bio", so you can try to modify the PHP codes of the document you mentioned above,
hidden link
from:

...
$attributes['bio'] = get_field( 'bio', $post->ID );
...

To:

...
$attributes['bio'] = get_field( 'wpcf-bio', $post->ID );
...

And test again