I've seen code that looks like this:
get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment'));
What is the definition of the p parameter and is it documented anywhere? I can't find anything about it on the Codex page for get_posts().
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community