Jump to content

Access Publish Date in API


bcartier
 Share

Recommended Posts

I'm wondering why there isn't a way to access published_date from the templates...  I've seen Ryan comment to other questions about this that they should use 'created', but it seems to me they are not the same.

For example, we have a team writing articles. We might have a page that's first created in October (saved without publishing), and isn't published until November. In these cases the created and published dates are a month apart.

If I want to do something like turn off the comment form in the article template for articles published more than 6 months ago, what are my options for doing that accurately? 

Is there a reason published date has been excluded from the PW api?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...