WordPress.org

Support

Support » Plugins and Hacks » Pods - Custom Content Types and Fields » [Resolved] Bug in displaying relation titles (needs the_title filter)

[Resolved] Bug in displaying relation titles (needs the_title filter)

  • There is a bug in Pods for (at least) relationship fields that point to posts or custom post types. It displays the title but does not apply the the_title filters.

    The problem is with translation plugins such as the popular qTranslate, which store all language versions so without applying the title filter, the entries end up being ridiculously long (especially with dropdown lists).

    http://wordpress.org/extend/plugins/pods/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    Please report all bugs on our GitHub at: http://pods.io/submit/

    Ok. I’m posting a fix here too, just in case others are interested in patching their Pods too. In pick.php line 383 in PodsField_Pick::data(). Append after:

    $result[ $search_data->field_index ] = trim( $result[ $search_data->field_index ] );

    the line:

    if ( $search_data->field_index == 'post_title' )
        $result[ 'post_title' ] = apply_filters( 'the_title', $result[ 'post_title' ] );

    It’s crude, I know, but you get the point.

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    I just pushed a generalized fix for this into Pods 2.3, which applies filters where we assign them correctly, for post_title

    This bug is actually still present in 2.3-dev (pulled from github). I fixed it again. Will post a bug on Github and also the patch.

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    Fixed in latest commit

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Bug in displaying relation titles (needs the_title filter)’ is closed to new replies.
Skip to toolbar