WAIT: Cannot Access Taxonomy Term Meta (Color Picker) in JetEngine Listing Calendar Item (Bricks Builder)

Hello everyone,

I am building a Dynamic Events Calendar using JetEngine Listing Calendar and Bricks Builder

Plugins:

Advance Custom FIelds v6.4.1
Jet Engine v3.7.6
Bricks v2.0.2

The Setup:

  1. CPT: Eventos.
  2. Taxonomy: Tipo de Evento (slug: tipo-de-evento, assigned to Events).
  3. Taxonomy Meta Field: A Color Picker field named color_de_la_etiqueta (added to the taxonomy term using JetEngine).
  4. Listing: Created with Source: Post for the Eventos CPT
    *The Problem:

I cannot retrieve the value of the taxonomy meta field (color_de_la_etiqueta) inside the Listing Item for my Events CPT to use it as a dynamic background or border color in the calendar cell. The Listing is in a Post context, and I cannot properly “cross-reference” to the associated Taxonomy Term Meta.

What I have tried (and failed):

  1. Choosing the Taxonomy Term Meta data option as a Dynamic tag, on the container’s background color setting. (I’ve tried with both values {color_de_la_etiqueta} and {acf_color_de_la_etiqueta} it does not output the color value)

  1. I tried adding a custom PHP function to my child theme’s functions.php file to retrieve the color and then calling it using a dynamic tag on the container’s background color field: {echo:get_color()}.

The PHP function I used was:

PHPfunction get_color() { $categories = get_the_category(); if ( ! empty( $categories ) ) { $mycat = "tipo-de-evento_" . $categories[0]->term_id; $color_picker_value = get_field('color_de_la_etiqueta' , $mycat ); return $color_picker_value; } }

This PHP method did not work either. I’ve seen some posts with this same error and tried their solutions but didn’t work for me. Maybe I’m doing something wrong. If you need more information, I’ll be glad to share.

Hi @GV-OI and welcome to the forum :partying_face:

Can you please show me your setup/structure panel? Because I think there may be no connection (in Bricks) between CPT and the taxonomy color dynamic tag that you are using. But I would have to see your setup to understand it.

Also, make sure that you picked the dynamic tag from the dynamic tag picker. Because in your example, it should not start with acf_, that’s reserved for ACF custom fields.

So, for now, it’s best if you:

  • Make sure that you are in the taxonomy context (that you are looping over them, for example).
  • That you use the correct dynamic tag, which you pick from the dynamic tag picker

IF that is not solving the issue, please record a video with an explanation of your setup, and maybe I will notice what is wrong.

Thank you,
Matej