Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 4 characters in body
Source Link

I have a custom post type called "team".

I created a Post Object with the ACF plugin with withwhich Filter by Post Type value of "team" and I target the WordPress Posts for the location.

The idea is to associal team member with a wordpress post.

Let's say that the admin create a new post and after that select a "team member" from the post object.

If the user visit the single member page I want to show all posts associated with the current visited member.

As far as I can see I need to use "meta_query" in the post $args and check if it's equal to the current post id but I can't make it work.

What is the right way to achieve this functionality?

I have a custom post type called "team".

I created a Post Object with the ACF plugin with with Filter by Post Type value of "team" and I target the WordPress Posts for the location.

The idea is to associal team member with a wordpress post.

Let's say that the admin create a new post and after that select a "team member" from the post object.

If the user visit the single member page I want to show all posts associated with the current visited member.

As far as I can see I need to use "meta_query" in the post $args and check if it's equal to the current post id but I can't make it work.

What is the right way to achieve this functionality?

I have a custom post type called "team".

I created a Post Object with the ACF plugin which Filter by Post Type value of "team" and I target the WordPress Posts for the location.

The idea is to associal team member with a wordpress post.

Let's say that the admin create a new post and after that select a "team member" from the post object.

If the user visit the single member page I want to show all posts associated with the current visited member.

As far as I can see I need to use "meta_query" in the post $args and check if it's equal to the current post id but I can't make it work.

What is the right way to achieve this functionality?

edited tags
Link
Source Link

Show posts associated with ACF post object and custom post type

I have a custom post type called "team".

I created a Post Object with the ACF plugin with with Filter by Post Type value of "team" and I target the WordPress Posts for the location.

The idea is to associal team member with a wordpress post.

Let's say that the admin create a new post and after that select a "team member" from the post object.

If the user visit the single member page I want to show all posts associated with the current visited member.

As far as I can see I need to use "meta_query" in the post $args and check if it's equal to the current post id but I can't make it work.

What is the right way to achieve this functionality?