Filter posts based on project IDs.