How to display the post date in WordPress Post Grid Gallery

Product:

Wonder Grid Gallery

Tutorial:

Wonder Grid Gallery can be used to create WordPress grid galleries from WordPress posts. This tutorial will guide you how to add the post date to the grid gallery.

To display the post date in the gallery, in the gallery editor, step 4 Options tab, Text and Grid Gallery Content, you can add the macro variable __DATE__ to the Text Overlay template. The macro variable will be dynamically replaced by the post date when the gallery is published.

wordpress-gallery-post-date

To style the date, you can add it with a CSS class and define the CSS, for example:

<div class="wonderplugin-gridgallery-item-date">__DATE__</div>

A demo is as follows. Hover over the image, the post date is displayed under the post title.

The supported macro variables are as follows:

Key Description
__TITLE__ title of the item
__DESCRIPTION__ description of the item
__IMAGE__ image HTML code
__BUTTON__ button HTML code
__SOCIALMEDIA__ social media buttons HTML code
__DATE__ date of a post, only works for WordPress post gallery and WordPress custom post type gallery
__AUTHOR__ author of a post, only works for WordPress post gallery and WordPress custom post type gallery
__CATEGORYNAMES__ category names, only works for WordPress post gallery and WordPress custom post type gallery
__CATEGORYNAMESANDLINKS__ category names and links, only works for WordPress post gallery and WordPress custom post type gallery
__TAGNAMES__ tag names, only works for WordPress post gallery and WordPress custom post type gallery
__TAGNAMESANDLINKS__ tag names and links, only works for WordPress post gallery and WordPress custom post type gallery