We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Get categories within relationship

How Do I?

The Design Core's avatar
The Design Core
359 posts
9 years ago
The Design Core's avatar The Design Core

I am trying to display categories from within a parents relationship tag but can’t get it to work.

{parents field="products_attachments"}
    {parents:categories}{parents:category_name}{/parents:categories}
{/parents}

Any help is appreciated.

       
Rob Allen's avatar
Rob Allen
3,114 posts
9 years ago
Rob Allen's avatar Rob Allen

I can’t test right now but the syntax that worked for me previously was something like:

{parents field="products_attachments"}
    {parents:categories}{category_name}{/parents:categories}
{/parents}
       
The Design Core's avatar
The Design Core
359 posts
9 years ago
The Design Core's avatar The Design Core
I can’t test right now but the syntax that worked for me previously was something like:
{parents field="products_attachments"}
    {parents:categories}{category_name}{/parents:categories}
{/parents}

Thanks for the reply.

I can’t remember if I tried that but I’ll give it another go and see if it works.

Thanks again!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.