Added support for 'ids' parameter to allow fetching of multiple posts.