Hi guys, I's like to display date modified INSTEAD of date published. Is there a simple way to accomplish this?
Freddie
Freddie
$date = $this->get( 'date_published' );
$date = $this->get( 'date_modified' );
<time itemprop="datePublished"
<time itemprop="dateModified"as well on line 92
<?php /** * Sample frontend functions.php for weeblrAMP */ // Security check to ensure this file is being included by a parent file. defined('WEEBLRAMP_EXEC') || die; add_filter( 'weeblramp_get_request_data', function ($data) { if (!empty($data['date_modified']) && !empty($data['date_published'])) { $data['date_published'] = $data['date_modified']; } return $data; } );