Skip Navigation

[Resolved] Using a custom field as a placeholder in a filter box

This support ticket is created 4 years, 2 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.

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 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1769583

Hi,

Is ti possible to use a custom field as a placeholder when formatting a filter box on search for a taxonomy?

E.g. it says I can use %%NAME%% (%%COUNT%%) for example.

However I want to use a custom field I have called wpcf-full-name which is attached the taxonomy, would think maybe this is possible and I am just missing something?

Cheers

#1770093

Hello,

I assume we are talking about the shortcode [wpv-control-post-taxonomy], see our document:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-control-post-taxonomy

The attribute "format" two values: '%%COUNT%% %%NAME%%'
It does not support custom taxonomy field, so there isn't such kind of built-in feature within Toolset, but you can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it.

#1770291

Thanks for your reply 🙁

That’s a real shame I really need this feature.

Is it not possible to do with some simply custom code, or is it not possible with the way Toolset is currently built?

#1770293

No, there isn't any existed filter hook for the "format" attribute, see our document:
https://toolset.com/documentation/programmer-reference/views-filters/

So I don't think there will be a simply custom code, you might consider to move the taxonomy field value into term's name.