Support » Plugin: Advanced Custom Fields » [Plugin: Advanced Custom Fields] Relationship – filter by meta value – How ?

  • matthias_123


    Hello Guys !

    In your changelog (2.1.4) you state:
    New Option for Relationship + Post Object: filter posts via meta_key and meta_value

    However I do not find any documentation on how to do this.

    Probably I am wrong with this approach anyway
    (I use WPML)
    I added a Relationship field to a post type but on the edit screen of this post type within the Relationship field all language variations are displayed

    Via WPML you can translate a post (creating a second post) and the plugin handles which posts are to be displayed (according to the current language)

    is there a way to intercept the post requested by the Relationship field (returning an array of post objects) and removing some of them

    I am using the Relationship field only on one edit-post screen (projects) and it is set to load all post of type: partner

    so: couldnĀ“t I use a filter to intercept all post results, check if I am on the edit-project screen and if post of type ‘partner’ are requested and then do some stuff (which shoiuld be simple – but getting at this point seems to be the problem)

    THANKS for any help,

  • The topic ‘[Plugin: Advanced Custom Fields] Relationship – filter by meta value – How ?’ is closed to new replies.