Skip Navigation

[Resolved] Filter drop down using custom field

This support ticket is created 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1110529

Hi

Is there a way to instead of showing the taxonomy names in the drop down filter box show instead of %%NAME%% which inserts the taxonomy name we can insert custom fields instead in this drown down relevant to each option?

There doesn't seem to be a list of variables available to use in filter boxes.

Thanks.

#1110752

Hi, it turns out the only two placeholders supported in the format attribute of a wpv-control-post-taxonomy shortcode are %%NAME%% and %%COUNT%%. You could add a types termmeta shortcode or a wpv-taxonomy-field shortcode in the format attribute, but you would need to know the current term ID. Unfortunately that's not available as a placeholder so I don't have an easy solution for you. What you want will require custom code that falls outside the scope of support we provide here.

If you'd like to request more placeholders accepted in the format attribute, I encourage you to submit a new ticket in the forum using the option "Suggest an improvement". Our developers will evaluate your request and decide whether or not to implement it.