How to loop sub terms of which assigned to my current custom post?

I am now processing my products using Bricks and ACF.

  1. I created a new custom post type: “Products”, to contain every single product. Products are all kinds of light, for example, LED, street light, landscape light.

  2. I added a new taxonomy to the custom post type: “Product Category”. The taxonomy is hierarchical.
    For example, “Solar” is a top level taxonomy, and it has some sub taxonomies like “Solar Spot & Flood Light” and “Solar Outdoor Wall Light”. Some sub taxonomies has sub sub taxonomies, for example, “Solar Outdoor Wall Light” has “Solar Decorative Wall Mount” and “Solar Security Light”.

  3. I added a new custom field group to the taxonomy: “Second level category” to show some information of individual taxonomy. Here are some fields: Introduction, Backgroumd Image.

  4. The reason why I call the custom field “SECOND” is that I created another custom post type: “Top level category” to show my top level category information rather than show them in the taxonomy “Product Category”. For example, one “Top level category” post is Solar. Also, I added the taxonomy “Product Category” to “Top level category”.

  5. Lastly, I created two templates for custom post type: “Top level category” and taxonomy: “Second level category” individually: Top level template and Second level template.

Here are my two questions when I build these two templates:

  1. I have already select corresponding taxonomy for every custom post(post type: “Top level category”). I want to show all sub taxonomies’ information in corresponding posts. For example, show “Solar Spot & Flood Light” and “Solar Outdoor Wall Light” and their Introduction, Backgroumd Image in “Solar” post(post type: “Top level category”). How to use query loop to show?
  2. I have already select corresponding taxonomy for every custom post(post type: “Product”). I want to show sub sub taxonomies’ information(if any) or product information in corresponding sub taxonomies. For example, show “Solar Decorative Wall Mount” and “Solar Security Light” and their Introduction, Backgroumd Image in “Solar Outdoor Wall Light” taxonomy. Show products(post type: “Product”) and their costum field in “Solar Spot & Flood Light”. How to use query loop to show?

    Here are my solution for the first question but it doesn’t work:
    (I am a new user so I can only put one media in my topic, I will put the screenshot in comments)
    Thanks everyone!

20231024-181126