Home Forums General Issues Dynamic Post Object Dropdown Items


Dynamic Post Object Dropdown Items

  • Hello!

    I have a site that I am managing where a user account is assigned to multiple Markets (in this case, Market is a custom post type). Example below:

    John Smith

    • Atlanta, GA
    • Orlando, FL
    • Mobile, AL

    Jane Doe

    • Nashville, TN
    • Baltimore, MD
    • San Diego, CA
    • Phoenix, AZ

    I have an acf_form() that has a Post Object field that is connected to Markets. However, that field loads in all the Markets. I want to only load in the Markets that the user is associated with.

    Is it possible to create a Post Object field (or heck, even a dropdown) that is allowed to be dynamic based on the user that logs in? I know there are ways to hook into the values of a dropdown in PHP, but that permanently changes the dropdown selections, so that hasn’t worked.

    Any suggestions are welcomed! Thanks!

Viewing 1 post (of 1 total)

The topic ‘Dynamic Post Object Dropdown Items’ is closed to new replies.