Creating a generic posts function - part 14