Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plugin_myContentFilter($content) {
- if (!is_single()) {
- return substr($content, 0, 400) . ' <a class="more-link" href="' . esc_url( get_permalink() ) . '">Read more!</a>';
- } else {
- return $content;
- }
- }
- add_filter("the_content", "plugin_myContentFilter");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement