WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Bug in displaying relation titles (needs the_title filter) (6 posts)

  1. normadize
    Member
    Posted 1 year ago #

    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/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. normadize
    Member
    Posted 1 year ago #

    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.

  4. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. normadize
    Member
    Posted 1 year ago #

    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.

  6. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed in latest commit

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.