Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Current Post Parameters in WP_Query #2

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

Current Post Parameters in WP_Query #2

patrickgalbraith opened this issue Oct 11, 2012 · 0 comments

Comments

@patrickgalbraith
Copy link
Owner

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant