reinitialize init_post_photos after pagination