این قالب برای نمایش تاریخ, ساعت و نام نویسنده از تابع discovery_posted_on استفاده کرده است. برای حذف این موارد شما دو تا کار می تونید انجام بدید.
1- تمامی تابع های discovery_posted_on فراخوانی شده در فایل های قالب مثل content.php را حذف کنید.
2- داخل فایل template-tags.php به جای کد های
if ( ! function_exists( 'discovery_posted_on' ) ) :
/**
* Prints HTML with meta indiscovery for the current post-date/time and author.
*
* @since discovery 1.0
*/
function discovery_posted_on() {
printf( __( ' <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'discovery' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'discovery' ), get_the_author() ) ),
esc_html( get_the_author() )
);
}
endif;
کد های زیر را قرار بدید.
if ( ! function_exists( 'discovery_posted_on' ) ) :
/**
* Prints HTML with meta indiscovery for the current post-date/time and author.
*
* @since discovery 1.0
*/
function discovery_posted_on() {
}
endif;