Title: Gr8 ;-)
Last modified: August 21, 2016

---

# Gr8 ;-)

 *  Resolved [holgerhubbs](https://wordpress.org/support/users/holgerhubbs/)
 * (@holgerhubbs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/gr8/)
 * How could this modification date be displayed on a different website?
 * [http://wordpress.org/extend/plugins/site-last-modified/](http://wordpress.org/extend/plugins/site-last-modified/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [EXED internet](https://wordpress.org/support/users/exed-internet/)
 * (@exed-internet)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/gr8/#post-3741606)
 * Hi,
 * Do I understand correctly that you wish to show the modification date on site
   1 to be displayed on site 2? Is site 2 completely seperated from site 1?
 *  Thread Starter [holgerhubbs](https://wordpress.org/support/users/holgerhubbs/)
 * (@holgerhubbs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/gr8/#post-3741607)
 * Thank you for your response 😉
    Yes, the websites would be separate. Different
   servers, different domains, eventually even different platforms.
 * How to do?
    – PHP class >>> WP Plugin – Write modification date and url (Site
   1) into a text file… – Site 2 (same plugin or PHP class) would read and display–
   Mechanism to report several sites…
 * For example my other websites:
    [http://www.Dogs.com](http://www.Dogs.com) (updated
   May 13th) [http://www.Cats.com](http://www.Cats.com) (updated May 12th) [http://www.Frogs.com](http://www.Frogs.com)(
   updated May 12th)
 *  Plugin Author [EXED internet](https://wordpress.org/support/users/exed-internet/)
 * (@exed-internet)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/gr8/#post-3741636)
 * Hi,
 * When you have access to the database you could retreive the last modified timestamp
   of the posts directly.
 * Otherwise you could indeed use a seperate textfile.
 * Or as an alternative, more WordPress-like solution, you could create a new page
   and use the shortcode on that page. After that you can retreive that page from
   your other websites and destilate the timestamp from the page.
    You can make 
   this a more easy job by adding some kind of id to the container element.
 * Little example:
    -  in the WordPress page, create something like
       `<div id="last-modified">[site-
      last-modified]</div>`
    - on another site, retreive the page (file_get_contents, but cUrl is also possible)
      `
      $wppage = file_get_contents('url-of-file');`
    - destilate the timestamp
       `preg_match('|<div id="last-modified">([^<]*)</div
      >|is', $wppage, $timestamp);`
 *  Thread Starter [holgerhubbs](https://wordpress.org/support/users/holgerhubbs/)
 * (@holgerhubbs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/gr8/#post-3741639)
 * Cool 😉
 *  Plugin Author [EXED internet](https://wordpress.org/support/users/exed-internet/)
 * (@exed-internet)
 * [13 years ago](https://wordpress.org/support/topic/gr8/#post-3741665)
 * Hi,
 * Can I close this issue?
 *  Thread Starter [holgerhubbs](https://wordpress.org/support/users/holgerhubbs/)
 * (@holgerhubbs)
 * [13 years ago](https://wordpress.org/support/topic/gr8/#post-3741667)
 * Thank you, that’s very polite. I closed it.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Gr8 ;-)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/site-last-modified_d9362e.svg)
 * [Site Last Modified](https://wordpress.org/plugins/site-last-modified/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/site-last-modified/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/site-last-modified/)
 * [Active Topics](https://wordpress.org/support/plugin/site-last-modified/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/site-last-modified/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/site-last-modified/reviews/)

## Tags

 * [feature](https://wordpress.org/support/topic-tag/feature/)

 * 6 replies
 * 2 participants
 * Last reply from: [holgerhubbs](https://wordpress.org/support/users/holgerhubbs/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/gr8/#post-3741667)
 * Status: resolved