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

Current Post Parameters in WP_Query #2

Open
patrickgalbraith opened this issue Oct 11, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@patrickgalbraith
Copy link
Owner

commented Oct 11, 2012

It would be nice to have a way to use information about the current post in the WP_QUERY option. However this may only work for single post pages or just the first of a series, not sure yet.

{
    "author_id": "{AUTHOR_ID}",
    "cat": "{CATEGORY_ID}"
    "exclude": {POST_ID}

    ...and so on...
}

The question is what to do if none of these parameters can be set. Is the widget hidden in that instance...
Or maybe just ignore those options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.