You’ve practically got the solution in the code 😉
Notice that the entire content of the first post is visilbe, but for the rest only the excerpt displays. That’s from this (after tidying):
<?php
if( $wp_query->current_post == 0 && !is_paged() ) {
the_content();
} else {
the_excerpt();
}
?>
So let’s just apply that logic to the thumbnail part:
<?php if( $wp_query->current_post != 0 || !is_paged() ) { ?>
<div class="excerpt-thumb">
<a href="https://wordpress.stackexchange.com/questions/121776/<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
<?php the_post_thumbnail('excerpt-thumbnail', 'class=alignleft'); ?>
</a>
</div>
<?php } ?>
Related Posts:
- How to Remove all Instances of edit_post_link
- How to change featured content to a different tag in WordPress Twenty Fourteen?
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- theme options echoing multiple times
- Set post title based on first h2 element in the content section
- How can I hide Home in my menu in a specific page?
- Error when adding excerpt to the content through functions.php
- Dynamic content based on a URL parameter
- How do I find PHP file that contains content of my page?
- WordPress page content outside WordPress
- Three Questions with Twenty Eleven theme
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- Is it possible to display a DIV to not logged in users and then change it for users who are logged in?
- How to turn each phone number within the $content to a telephone link?
- Display an image based on field value
- How can I call a specific file (via php) by referencing the logged-in username?
- making my own “related pages” / “pages you might like” section
- search and add in wordpress content
- For some time, some of my pages do not display the content anymore. Any idea where this could be coming from?
- Before & After Content – After Content directly below Before Content when using require_once
- Trying to modify content.php
- How to get Post sidebar & footer including html like get_the_content() which only gets content section?
- dynamically change content of div with php
- Show content by using tags
- Update same content in multiple posts at once?
- Explode Content within specific HTML element
- Add end mark at the end of every article
- Create dynamic content from one WP page to multiple other pages
- Editing the contents of just one div on a page from wordpress
- Overwriting a Shortcode
- Changing 2011 theme header image based on user dropdown
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Where are Sessions are being started? [closed]
- How can I add more code to this?
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- Encode code snippet in AJAX endpoint
- Load files content [closed]
- How do I remove blog entries from home page Twenty Eleven child theme?
- How to create advanced custom fields for backend content
- Replace all instances of string in page (including header and footer)
- WordPress plugin admin page – using WordPress function in linked php file
- HTML table attributes ignored
- What’s the best way to include PHP code in pages?
- Is there any wordpress plugin to upload images and captions to multiple pages once
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- PHP in Edit Post link
- Removing the first 8-10 letters from a post?
- How to add drag and drop functionalities to a div inside option panel
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Timthumb.php image gallery not working on Multisite WordPress
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- How do you create two separate Register pages?
- $_GET[‘updated’] does not work in WordPress 3.1?
- Why doesn’t PhotoSmash plugin play well with wp_query?
- How to send form data from WordPress (Meta Box) to an OData service?
- How to Configure Events List in WordPress to Disappear Event Once Date is Past
- Removing WordPress Footer -without access to PHP code?
- dynamic page using php from sql database
- Upload non-featured image to image field
- Usage of call back function of add_meta_box()
- Building a REST API for your web app exposes primary keys of DB records?
- WordPress get_media_embedded
- Change product_base programmatically
- wp_delete_comment takes two tries to delete – then deletes all comments
- php redirect with custom user roles set and working but redirect not working for when users are logged in
- how to get serialized post meta
- Hide Heading if ACF Field is empty
- Scheduling an event inside plugin class is not working
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- How to set a template with wp_insert_post
- WordPress Custom SQL Table with UserID Filter for results
- Automatically add images to a menu
- Display Yoast meta-description `wpseo_desc` within loop of categories and fail silently if no data is set [closed]
- Get access to variable from previous pageview, excluding ajax-calls
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Permission callback to check if user has application password
- Load Posts on Click via Ajax into a DIV
- How to catch wordpress post ID when it’s published
- calling a custom field value inside functions.php
- What is the best way to define constant options for a theme?
- WordPress redirect redirecting too many times or not at all
- Can’t retrieve element with WordPress default @fetch_rss();
- set post limit at load more ajax wordpress
- I have a snippet to redirect all users to a maintenance page. How do I exclude users with admin role?
- php esc_html_e with an html link inside not working
- How to filter custom taxonomy term name, slug, and description?
- An audio player that showcase a random song from playlist every 24h [closed]
- how to prevent wordpress admin from logging in via woocommerce my-account page
- get_the_ID() in the footer returns wrong value
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Trouble inputting variable into WP query
- How to get the last category name of a child category?
- Add html link in functions.php files of the theme
- How can I add a UTM tag with PHP code to pick up the post slug dynamically in the UTM?
- How do I include SVG file used as featured image?
- Use value from Ajax call in PHP function
- require_once() if a product in woocommerce contains a tag [closed]
- the_posts_pagination() not working in wpquery
- Automatic excerpt is not shown with the_excerpt() command