Playa Documentation

{exp:playa:total_children}

You can use the {exp:playa:total_children} tag to get the total number of entries related by Playa fields.

Tag Parameters


{exp:playa:total_children} supports almost all of {exp:channel:entries}’ tag parameters, as well as the following:

  • entry_id The parent entry’s ID(s). If your tag is within an {exp:channel:entries} tag pair, this will default to the current entry’s ID.

  • child_id The child entry ID(s) to include. Prefix with “not” to define entries to exclude instead.

  • field The Playa field’s name where the relationship was made, or the Matrix field’s name if your Playa field lives within a Matrix field.

  • field_id The Playa field’s ID where the relationship was made, or the Matrix field’s ID if your Playa field lives within a Matrix field.

  • col The Matrix column’s name where the relationship was made.

  • col_id The Matrix column’s ID where the relationship was made.

  • row_id The Matrix row’s ID where the relationship was made.

  • var The Low Variables variable’s name where the relationship was made.

  • var_id The Low Variables variable’s ID where the relationship was made.

Support

Having problems setting up and/or using Playa? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.