• Pete

    (@perthmetro)


    Can I get/echo the date-time that a specific post/CPT’s taxonomy is updated/changed?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anonymous User 9055193

    (@anonymized-9055193)

    Thread Starter Pete

    (@perthmetro)

    No, I want the updated date of the taxonomy rather than any post update. In other words find the modified date only if a specific taxonomy has been updated.

    Hi,

    You could do it by finding the most recent post in the taxonomy term.

    $posts = get_posts('post_type=any&showposts=1&orderby=date&taxonomy=term');
    Thread Starter Pete

    (@perthmetro)

    I don’t actually want to lists the posts, I want to display the date on the single.php that the post was updated but ONLY if the CT was updated.

    Since a taxonomy doesn’t have a “last changed”-field, you’d actually have to query the posts in the taxonomy to figure out if anything has changed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I get the date/time of a post's updated taxonomy?’ is closed to new replies.