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

Cannot find a way to query for all posts where a specific user is a (co)author #1056

Open
roland-jungwirth opened this issue Aug 13, 2024 · 0 comments

Comments

@roland-jungwirth
Copy link

I need to set up a custom query (for an Elementor loop grid) that constraints the query to all posts from a specific author and/or co-author. Unfortunately I did not find anything in the code. Obviously this won't work

$query->set('author', $author_id);

so how can I achieve this?

@roland-jungwirth roland-jungwirth changed the title Cannot find a way to query for all posts where a specific user is a (co)author) Cannot find a way to query for all posts where a specific user is a (co)author Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants