client
1
Hello Aigars, thank you!
I use as slider text some text from pages not from post.
As I understand the excerpt box is only available om posts.
How can I limit the number of word or characters if I use page text in the slider?
Thanks for your support.
You can enable Excerpts for Pages by simply adding this to your functions.php
file
add_action( 'init', 'add_excerpts_to_pages' );
function add_excerpts_to_pages() {
add_post_type_support( 'page', 'excerpt' );
}
There are also plugins for that if you don’t like to deal with code
If you don’t like this approach you can implement filter for Excerpts. Read more about it here: http://codex.wordpress.org/Function_Reference/the_excerpt
client
3
Aigars, thanks a lot. It works!