Site logo

Archived topic

How to display different values of the same custom field

5 replies · Started by Leo on April 21, 2022

Viewing posts 1–6 of 6

Hi there,

This page uses custom fields from other web pages on my site. One of the custom fields (the one in yellow with a mortarboard hat icon) may have one or two different values, depending on each case.

But it always displays just one custom field value, even if there are two different values. For example, the show "Clowning" displays "Cicle mitjà", while it should display "Cicle mitjà | Cicle superior."

May you please tell me the best way to accomplish that?

Hi there,

how can it have two different values ? Are you using ACF and its Repeater fields ?

Hello David,

No, I'm not using ACF. I created a custom field, and then I added it twice on the same page. It works fine with the Search & Filter Pro plugin to filter the results.

You can see a screenshot of it here.

Hi Leo,

GB headline won't take both values currently.

I would suggest using different custom field name, eg.esc_nivell_2, add this to your content template as well.

For posts that doesn't have value for esc_nivell_2, it won't show on front end.

I tried your suggestion and it works very nice. Thank you Ying! :)

Glad it worked out :)
You are welcome Leo!

This archived topic is closed to new replies.