Skip to content

webdeveric/date-format-shortcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages