• Hi everyone

    In order to avoid display posts date in search results I commented this line in functions file.

    // Print HTML with meta information for the current post-date/time and author.
    //if ( ! function_exists( 'wpforge_entry_meta_header' ) ) :
    //	function wpforge_entry_meta_header() {
    //		if ( is_sticky() && is_home() && ! is_paged() ) {
    //			echo '<span class="genericon genericon-pinned genericon-flip-horizontal"></span> <span class="sticky-post">' . __( 'Sticky', 'wp-forge' ) . '</span>';
    //		}
    //		// Set up and print post meta information.
    //		printf( '<span class="entry-date updated"><span class="genericon genericon-month"></span><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="genericon genericon-user"></span><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>',
    //			esc_url( get_permalink() ),
    //			esc_attr( get_the_date( 'c' ) ),
    //			esc_html( get_the_date() ),
    //			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    //			get_the_author()
    //		);
    //	}
    //endif;

    My goal is hide the text “may 14, 2019” specifically.

    Do I right?

    Thanks for any tips.

  • The topic ‘Date in search results’ is closed to new replies.