<ul>
{project_client}
<li class="{if '{exp:playa:total_parents}' != 0}has-projects{/if}">{title}</li>
{/project_client}
</ul>
This was working roughly a month ago (not sure exactly when it broke, though there have been EE and Playa upgrades). Regardless of whether total_parents is in a conditional, it will return 0. This isn't correct, as the client in question (child) has a handful of projects (parents). If I try to force the entry_id parameter, I get a MySQL error:
SELECT DISTINCT(rel.parent_entry_id) AS entry_id FROM exp_playa_relationships rel WHERE rel.child_entry_id = {entry_id tagdata_cache_index=
Filename: third_party/playa/mod.playa.php
Line Number: 471
Finally, I've wandered around similar issues here and tried printing {exp:playa:parent_ids}, which only prints an empty string.
Am I missing something obvious?
Playa 4.1.0.3
ExpressionEngine 2.4.0 + bajillion addons
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE
