DC Term Queries

  • CPT is Plant
  • The plant has a taxonomy of Family
  • The value of the Family item is “Caprifoliaceae” which is item 147

Here is the HTML

  1. Family Taxonomy ID: {{dc:post:meta key=“hps_family_tax”}}
  2. Term value hard coded 147: {{dc:term:name term=“147”}}
  3. Term value with DC: {{dc:term:name term="{{dc:post:meta key=& quot ; hps_family_tax & quot ; }}"}}

I’ve put spaces into & quote ; to show what I mean, otherwise it substitutes a double quote

Here is the output:

  • Family Taxonomy ID: 147
  • Term value hard coded 147: Caprifoliaceae
  • Term value with DC: "}}

My query:

  1. Output 1 is ok and is correct
  2. Output 2 is ok and is correct
  3. Item 3 is broken, but despite fiddling with single and double quotes I can’t make it work

Help! Bill.

I’ve also tried this:

  • Term value with DC: {{dc:term:name term="{{dc:post:meta key=‘hps_family_tax’}}"}}

Using single inner quotes. Still not working.

And this

  • Term value with DC: {{dc:term:name term=’{{dc:post:meta key=\ "hps_family_tax\ "}}’}}

With spaces added so you can see I escaped the "

Hi Bill,

Thanks for reaching out.
It seems there might be some problem in the setting or the post meta values, I would request that you, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– The Page where you have used these dynamic content tags.

To create a secure note, click the key icon underneath any of your posts.

Thanks

See above, Bill.

Hey Bill,

Dynamic Content doesn’t render that way currently it’ll just look at the first match and everything inside it. I’m looking at processing inner content right now similar to your example. I think it’s definitely something we can support though, but it’s not something that can really be done without creating a new dynamic content field. Thanks and have a great day.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.