' . __( 'Sticky', 'femina' ) . '';
}
// Set up and print post meta information.
print(__('By ', 'femina'));
printf( '%2$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
);
printf( '',
esc_url( get_permalink() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
}
endif;
if ( ! function_exists( 'femina_excerpt_more' ) && ! is_admin() ) :
/**
* Replaces "[...]" (appended to automatically generated excerpts) with ...
* and a Continue reading link.
*
* @since Femina 1.0
*
* @param string $more Default Read More excerpt link.
* @return string Filtered Read More excerpt link.
*/
function femina_excerpt_more( $more ) {
if ( ! is_single()){
$link = sprintf( '%2$s',
esc_url( get_permalink( get_the_ID() ) ),
/* translators: %s: Name of current post */
sprintf( __( 'More %s →', 'femina' ), '' . get_the_title( get_the_ID() ) . '' )
);
return ' … ' . $link;
}
}
add_filter( 'excerpt_more', 'femina_excerpt_more' );
endif;
/**
* Filter the except length to 20 characters.
*
* @param int $length Excerpt length.
* @return int (Maybe) modified excerpt length.
*/
function femina_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'femina_excerpt_length', 999 );