benjamin icon indicating copy to clipboard operation
benjamin copied to clipboard

returning the_excerpt() returns full text

Open glodeneye opened this issue 5 years ago • 3 comments

so i'm trying to make a custom category page and use the built in the_excerpt() but it's returning the full text and not just the short excerpt example code: `

<?php
// The Loop
	while ( have_posts() ) : the_post(); 
	?>
	<p><?php the_excerpt(); ?></p>

`

glodeneye avatar Mar 05 '19 18:03 glodeneye

see example in the search results /benjamin-dev/template-parts/content-search.php line 24

glodeneye avatar Mar 05 '19 18:03 glodeneye

what ended up working was to use the get_the_excerpt()

glodeneye avatar Mar 07 '19 16:03 glodeneye

I think you might be using an older commit, can you pull from the latest commit on the "dev" branch and let me know if youre still seeing the issue? @glodeneye

kyle-jennings avatar Mar 16 '19 21:03 kyle-jennings