fb_pixel

How to make Wordpress in the category output news announcements (zag, picture and a couple of lines) with the inscription read more, and not the whole news?

Development | Web Development
Description
How to make Wordpress in the category output news announcements(zag, picture and a couple of lines) with the inscription"read more", and not the whole news?
Attachments
No attachments
Info
Description
You need a wp function called custom_excerpt_length
/* Change Excerpt length * /
function custom_excerpt_length($length) {
return 30;
}
add_filter(‘excerpt_length’, ‘custom_excerpt_length’, 999);

or just cut
wp_trim_words(get_the_content(), $num_words=20, $more=null)

on July 08th, 2020 (5:12 pm)
All coments
This job has not been commented yet.