Support » Plugin: Pods - Custom Content Types and Fields » Avatar filter not retrieving.

  • Resolved msteel

    (@msteelnapcocom)


    I’m running 2.4.4-alpha (I already checked the latest and this issue still exists).

    Line 352 reads:
    $user_avatar = get_user_meta( $_user_ID, $avatar_field . '.ID', true );

    But I can only get the image to display without the ‘.ID’, like so:
    $user_avatar = get_user_meta( $_user_ID, $avatar_field, true );

    I’m going to update my alpha. Can you let me know if this is something that will be fixed in 2.5 Beta 1? I’ll run my update then.

    Thanks!

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

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

    (@sc0ttkclark)

    Are you getting the avatar image ID back from that first line? What are you expecting?

    Thread Starter msteel

    (@msteelnapcocom)

    You store it in the db with user meta_key “avatar” but are trying to retrieve meta_key “avatar.ID”.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    Should be fixed in 2.5 as we have unit tests creates and passing for all of the traversal type combinations. FYI though, Pods does hook into dot traversal when it matches a field in Pods, it will automatically filter the meta returned and get you data from the object you want, like the ID of the user avatar attachment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Avatar filter not retrieving.’ is closed to new replies.