I am beginner in php.. so I have this trouble to customize code that what I want..
I want to display recent post with date & time in after primary sidebar and display only in frontpage .. so I put this code below to function.php in child theme
add_action('hybrid_before_primary', 'myrecentposts');
function myrecentposts() {
if(!is_home() || !is_front_page())
$args = array(
'type' => 'postbypost',
'limit' => 5,
'echo' => false,
);
$args = apply_filters('myrecentposts', $args);
$archives = '<div id="recentlypost" class="widget widget_recentlypost widget-widget_recentlypost"> <div class="widget-inside"><h3 class="widget-title">Berita Terbaru</h3><ul>';
$archives .= str_replace(array("\r", "\n", "\t"), '', wp_get_archives($args));
$archives .= '</ul></div></div>';
echo $archives;
}
that's code it just worked.. but my problem is .. where I should put the get_the_time function so widget will display date time before title & url permalink..
Thanks for any help..