Tag Info

New answers tagged

0

Here is my version, keeping all html tags and also trimming the content after the last word in of a sentence if ( ! function_exists( 'pietergoosen_custom_wp_trim_excerpt' ) ) : function pietergoosen_custom_wp_trim_excerpt($pietergoosen_excerpt) { global $post; $raw_excerpt = $pietergoosen_excerpt; if ( '' == $pietergoosen_excerpt ) { ...


0

There is an explanation in the WordPress Codex which I copy here for reference. Don't forget <?php and ?> <?php function remove_more_link_scroll( $link ) { $link = preg_replace( '|#more-[0-9]+|', '', $link ); return $link; } add_filter( 'the_content_more_link', 'remove_more_link_scroll' ); ?> Prevent Page Scroll When Clicking the ...



Top 50 recent answers are included