• Resolved springbreak

    (@springbreak)


    Hi and congratulations for you plugin!
    Please put some light on a new user. I’m using Astra Theme and Elementor Pro.
    My intention is to filter all posts based on relational field type created with ACF (user) and to show on a specific page just the posts assigned to him when is logged-in.
    So far so good, I’ve tried this:
    Advanced Query Options – Dynamic User
    Dynamic User Options – Custom Fields Contains Current User
    User Data to Compare – Username
    User field Name – field_xxxxxxxxxx (from ACF)
    This should show to the currently authenticated user all posts that have in the custom field his username I assume.
    Am I doing something wrong?
    In ACF return format should be User Array or User Object or User ID?
    Could you please help me with this request?
    All the best & thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shabti Kaplan

    (@shabti)

    In your case, use the user ID return format and for User Data to compare choose ID

    Thread Starter springbreak

    (@springbreak)

    Great, thanks a lot. It works fine, with one remark, because I didn’t know….
    In ACF, I had to disable “select multiple values”.
    Now I got it!!

    I am having a similar issue with this. Both the fields are set to IDs and whether the field accepts multiple values or not doesn’t seem to make a difference it just doesn’t show any results.

    Advanced Query Options
    – Dynamic User

    Dynamic User Options
    – Custom Fields Contains Current User

    User Data to Compare
    – User ID

    User Field Name
    – owners [the name of the custom relationship field]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Field is Current User’ is closed to new replies.