Add $more_link_text parameter to the_excerpt()

this filter is on the WordPress Codex …  add_filter(‘excerpt_more’, ‘new_excerpt_more’); function new_excerpt_more($more) { global $post; return ‘<a class=”moretag” href=”‘. get_permalink($post->ID) . ‘”> &hellip; </a>’; } This works perfect, however I wonder if it is also possible to create a filter that extends the_excerpt() with the same parameter like the_content() where it is possible to set … Read more

Automatic Excerpt Not Working

I’m using the_excerpt(); on an archive page; my problem: manual excerpts display, but automatic excerpts do not (just for clarification: an automatic excerpt meaning a snippet generated from the_content(); when a manual excerpt isn’t present) What I’ve Tried/Figured Out So Far: I eliminated the possibility that the word/character length could be set to 0 the_content(); … Read more

Twenty Fourteen: Change Read More text

I’ve tried to remove the meta-nav arrow from end of my “Read more”. I’m building a child theme on top of Twenty Fourteen and have used // Change excerpt length function new_excerpt_length( $length ) { return 20; } add_filter( ‘excerpt_length’, ‘new_excerpt_length’ ); // Replaces the excerpt “Read More” text by a link function new_excerpt_more( $more … Read more

Remove ellipsis from the excerpt retrieved using get_the_excerpt()

I’m using a custom WP_query to display a carousel with the most recent post on a page that doesn’t have a main loop. Inside the WP_query loop, I’m using get_the_excerpt() to retrieve the automatically generated excerpt of those posts. The posts do not have a custom excerpt set, neither do they have a <!–more–> tag. … Read more