• Resolved joaos5

    (@joaos5)


    Hello,

    I need to add to a page the date when it was created.

    How can I add the atribute post-created or post-modified to the shortcode [wpdts-date].

    Regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Denra.com

    (@denra)

    Hello @joaos5,

    You can use:

    [wpdts-date start="post-created"]

    [wpdts-date start="post-modified"]

    or the same with custom format, e.g.:

    [wpdts-custom start="post-created" format="j.n.Y G:i"]

    [wpdts-custom start="post-modified" format="j.n.Y G:i"]

    Thank you for using our plugin!

    Thread Starter joaos5

    (@joaos5)

    Hello,

    Thanks for the reply it worked perfect, until last update now is giving

    Warning: Undefined array key “years_zero” in?/home1/airlisto/public_html/wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcode.php?on line?163

    and

    Warning: Trying to access array offset on value of type null in?/home1/airlisto/public_html/wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcode.php?on line?201

    I am using

    [wpdts-date start=”post-created”]

    Regards

    Plugin Author Denra.com

    (@denra)

    Hi @joaos5 ,

    Thank you for letting us know. The warnings were removed in version 2.6.1. Please update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add atribute’ is closed to new replies.