kyle-jennings / benjamin

A WordPress theme built with _s, 18f's US web design standards, and the needs of the people.
GNU General Public License v2.0
41 stars 10 forks source link

returning the_excerpt() returns full text #26

Open glodeneye opened 5 years ago

glodeneye commented 5 years ago

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 // Check if there are any posts to display if ( have_posts() ) : ?> <?php // The Loop while ( have_posts() ) : the_post(); ?>

<?php endwhile; //end loop }//end if ?> `

glodeneye commented 5 years ago

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

glodeneye commented 5 years ago

what ended up working was to use the get_the_excerpt()

kyle-jennings commented 5 years ago

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