Explain me how to Change the Length of the Default WordPress Excerpt?
Submitted by: MuhammadThe default WordPress excerpt is 55 words long. By modified bit to your functions.php file you can change the length to as you required.Below is the code if we need 60 length.
function new_excerpt_length($length) {
return 42;
}
add_filter('excerpt_length', 'new_excerpt_length');
Submitted by: Muhammad
function new_excerpt_length($length) {
return 42;
}
add_filter('excerpt_length', 'new_excerpt_length');
Submitted by: Muhammad
Read Online WordPress Themes Developer Job Interview Questions And Answers
Top WordPress Themes Developer Questions
☺ | Please explain why widget does not show up in the sidebar? |
☺ | Tell me in what case you don’t see plugin menu? |
☺ | Tell me can WordPress use cookies? |
☺ | Do you know what is the default prefix of wordpress tables? |
☺ | Tell me the ternary conditional operator in PHP language? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |