khiibots
Forum Replies Created
-
Why not just get the post ids and do
<?php echo get_the_date( $format, $post_id );
Or echo get_the_date(‘Y/m/d’,$recent[“ID”])
Based on my looks at the code i dont see were the Post ID is collected.
- This reply was modified 7 years ago by khiibots.
Hey Ahmed I found the source! in components-core.php
The Get_the_date is used and This was referenced in automatics plugin as an error Also!!!
<?php }
function amp_date( $args=array() ) {
global $redux_builder_amp;
if ( 2 == $redux_builder_amp[‘ampforwp-post-date-format’] ) {
$args[‘format’] = ‘traditional’;
}
if ( (isset($args[‘format’]) && $args[‘format’] == ‘traditional’) || ‘time’ == $args ) {
$post_date = esc_html( get_the_date() ) . ‘ ‘.esc_html( get_the_time());
} else {
$post_date = human_time_diff(
get_the_time(‘U’, get_the_ID() ),
current_time(‘timestamp’) ) .’ ‘. ampforwp_translation( $redux_builder_amp[‘amp-translator-ago-date-text’],
‘ago’);
}
$post_date = apply_filters(‘ampforwp_modify_post_date’, $post_date);
if ( ‘date’ == $args || ‘time’ == $args ) {
echo $post_date .’ ‘;
}
else
echo ‘<div class=”loop-date”>’.$post_date.'</div>’;
}Just email me via [email protected]
ill setup a sub-domain with a clone so you can see the bug.
Also Automatic had this same problem 3 months back.
Hit me and email and ill send the screenshots and send you wp admin access. to a cloned site with the exact setup.
Checked for Plugin conflicts and found none.
Email [email protected]
Hey I actually did try to get in contact but never got a reply
Swift. Have Not tested with Newspaper
- This reply was modified 7 years ago by khiibots.