Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

readme.md

Date Format Shortcode

This plugin provides a shortcode that allows you to format a timestamp.

Shortcode Attributes

format

See date for possible values.

This defaults to the date and time format defined on the general settings page in wp-admin.

timestamp

This is a Unix timestamp or any string that can be parsed by strtotime.

This defaults to the current time.

Example usage

Now

[date-format]

Tomorrow

[date-format timestamp="+1 day"]

Values returned from other shortcodes

[date-format format="F j, Y"][post-content id="123" autop="false" shortcode="false" field="post_date"][/date-format]

About

No description or website provided.

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.