Support

Account

Home Forums General Issues Filter Post Object Query by User

Helping

Filter Post Object Query by User

  • I’m creating a purchase order form using ACF with a repeater field. I would like to somehow filter the query from the post object field based on the current user. I created a custom user meta for using it as a reference. Is there a way to do it?

    The end goal, add a product (custom post type) filtered just for a specific user with metadata for a certain company.

    More example,
    I have a product post type for Company A (Item A1, Item A2) the repeater field should show only these items from A1 to A2. Then, Company B (Item B1, Item B2) same thing. My approach would be adding custom metadata to the user referencing it or add data for the products referencing the user.

    Any help would be appreciated.

  • There is not nearly enough information.

    Where/When are you trying to filter the post object field?

    What exactly are you trying to filter it by/for/why?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.