Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta Value as the parent posts id #38

Open
jessefriedman opened this issue Dec 13, 2023 · 1 comment
Open

Meta Value as the parent posts id #38

jessefriedman opened this issue Dec 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jessefriedman
Copy link

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?

@ryanwelcher ryanwelcher added the enhancement New feature or request label Apr 30, 2024
@ryanwelcher
Copy link
Owner

This is an interesting idea. Leave it with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants