Skip to main content

I'm trying to edit the loop in my archive.phparchive.php template so that when I visit a category page, it only displays the excerpts of the postspost excerpt and uses the featured image as a thumbnail.

When I add "the excerpt"the_excerpt() to the loop it displays the excerpt of the first post, but then just keeps repeating it indefinitely?

Here's the loop I'm trying to edit / modify:

                /*/ Start the Loop */ 
                while (have_posts())  {                 
    the_excerpt();
    get_template_part('content', get_post_format());

                    
                }
                    
                /*/ Display navigation to next/previous pages when applicable */
                if (theme_get_option('theme_bottom_posts_navigation')) {
                    theme_page_navigation();
                }

Thanks for any advice or suggestions.

I'm trying to edit the loop in my archive.php so that when I visit a category page, it only displays the excerpts of the posts and uses the featured image as a thumbnail.

When I add "the excerpt" to the loop it displays the excerpt of the first post, but then just keeps repeating it indefinitely?

Here's the loop I'm trying to edit / modify

                /* Start the Loop */ 
                while (have_posts())  {                 
the_excerpt();
get_template_part('content', get_post_format());

                    
                }
                    
                /* Display navigation to next/previous pages when applicable */
                if (theme_get_option('theme_bottom_posts_navigation')) {
                    theme_page_navigation();
                }

Thanks for any advice or suggestions.

I'm trying to edit the loop in my archive.php template so that when I visit a category page, it only displays the post excerpt and uses the featured image as a thumbnail.

When I add the_excerpt() to the loop it displays the excerpt of the first post, but then just keeps repeating it indefinitely?

Here's the loop I'm trying to edit / modify:

// Start the Loop
while (have_posts())  {                 
    the_excerpt();
    get_template_part('content', get_post_format());
}

// Display navigation to next/previous pages when applicable
if (theme_get_option('theme_bottom_posts_navigation')) {
    theme_page_navigation();
}
Source Link
speedypancake
  • 545
  • 2
  • 10
  • 26

"the_excerpt" in loop just keeps repeating first post?

I'm trying to edit the loop in my archive.php so that when I visit a category page, it only displays the excerpts of the posts and uses the featured image as a thumbnail.

When I add "the excerpt" to the loop it displays the excerpt of the first post, but then just keeps repeating it indefinitely?

Here's the loop I'm trying to edit / modify

                /* Start the Loop */ 
                while (have_posts())  {                 
the_excerpt();
get_template_part('content', get_post_format());

                    
                }
                    
                /* Display navigation to next/previous pages when applicable */
                if (theme_get_option('theme_bottom_posts_navigation')) {
                    theme_page_navigation();
                }

Thanks for any advice or suggestions.