You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a unique customization where I have two CPT's (Projects and Tasks). Tasks can be assigned to a Project with a custom Meta Key and Value. Where the Key = "parent_project" and the value = the project's post_id.
What I'd like to do is use ACF in a custom template and pull all jobs that are "children" of the parent project. To do this I'd need to be able to run a query for Meta Key = "parent_project", Meta Compare = "=", and Meta Value = "current posts post_id".
tl;dr Is there a way to add the post_id of the current post you're viewing as a variable of the meta value?
The text was updated successfully, but these errors were encountered:
I am working on a unique customization where I have two CPT's (Projects and Tasks). Tasks can be assigned to a Project with a custom Meta Key and Value. Where the Key = "parent_project" and the value = the project's post_id.
What I'd like to do is use ACF in a custom template and pull all jobs that are "children" of the parent project. To do this I'd need to be able to run a query for Meta Key = "parent_project", Meta Compare = "=", and Meta Value = "current posts post_id".
tl;dr Is there a way to add the post_id of the current post you're viewing as a variable of the meta value?
The text was updated successfully, but these errors were encountered: