To add an image gallery in a WordPress post or page, you can use the built-in gallery feature. While editing a post or page, click the "Add Media" button, select the images you want to include in the gallery, and click the "Create Gallery" button.