' . get_the_title() . '' ) ); $more = sprintf( '', esc_url( get_permalink() ), get_the_ID(), $text ); return $more; } add_filter( 'the_content_more_link', 'business_lander_content_more' ); /** * Prints HTML with meta information for the current post-date/time. */ function business_lander_posted_on() { global $post; if ( ! is_object( $post ) ) { return; } $author_id = $post->post_author; $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $byline = '' . esc_html( get_the_author_meta( 'display_name', $author_id ) ) . ''; echo ' ' . $byline . '' . $time_string . ''; // WPCS: XSS OK. } /** * Prints HTML with meta information for author */ function business_lander_show_author() { $author_name = get_the_author(); echo 'by ' . esc_html( $author_name ) . ''; } /** * Prints HTML with meta information for the categories, tags and comments. */ function business_lander_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'business-lander' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( '%1$s', $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'business-lander' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '%1$s', $tags_list ); // WPCS: XSS OK. } } }