Support » Plugin: Pods - Custom Content Types and Fields » Bi-directional relationship field value retrieval

  • Resolved Allprowebworks

    (@allprowebworks)


    Bi-directional relationship fields based on posts do not report field values in the dashboard when one of the posts in the relationship is not published.

    Quick fix:
    add to pods/classes/Pods.php line 1127
    $params->params[‘where’] = ‘t.post_status IN ( “pending”, “publish”, “draft” )’;

    Ideally, a filter would be used here. I’m not sure if this is a bug – other custom fields report their values in the dashboard even if the post status is not “publish”, why should relationship fields be any different?

    https://wordpress.org/plugins/pods/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bi-directional relationship field value retrieval’ is closed to new replies.