Step 1: Install Grid Gallery - Photo Image Grid Gallery plugin in word press and activate the plugin.
Step 2: Click on add grid gallery there is a title field.
Step 3: select a photo and inject malicious JavaScript in title field and save to draft and preview it.
Step 4: XSS payload will render.