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
- Go Back to Previous Page
- How to store the_title() into a variable to reutrn the value, not just echo it
- PHP 5+ stream wrappers with the underlying WordPress File API?
- Why is my custom meta box input not saving
- How can I call a row of user specific data from a custom table added to the WP Database
- How to upload a media file via FTP and then create an attachment post with it?
- Upgraded to php7.0, now ssh updates don’t work [closed]
- Redirect to a different page through registration, depending on page
- Creating a related post section based on similar categories
- How do I retrieve meta_key names with get_user_meta($user_id) call
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Jquery function working in Dev Console but not otherwise [duplicate]
- Headers already sent in Pluggable.php / homepage and wp-login error
- Unique session WordPress
- Can i put my shortcode inside a variable in php files?
- How to fix “Object of class WP_Term could not be converted to string”?
- Started getting warning message following host’s PHP upgrade
- Only show image from custom field when present
- Loading two post layouts for the same post with different url
- How do I populate custom field with current user role in Woocommerce [closed]
- Large WordPress CRON job
- WordPress query undefined offset in loop
- When echo follow Ajax button inside Ajax pagination template not working?
- jQuery Ajax PHP function call returning [object Object]
- Add category to post meta
- In WordPress, I want to run a loop to get posts in tabular format
- Nginx WordPress and another Web app URL structure
- Can I remove or edit an include() from a function with a filter?
- Get URL of Featured Image After wp_insert_post()
- WP_Query() load selected post
- custom stripe plugin
- Commas in Tag Cloud
- Query pulling a single post per month
- Getting a WordPress tag to print inside of a traditional php echo
- Show a specific post in wordpress with links
- Search by date in WordPress
- wp_update_post gives 500 internal error
- Site cannot access external connection
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- cant insert data in a custom table in phpmyadmin
- Invalid Argument foreach
- How to Link to category titles if it is in the single post content?
- How to add a PHP scripts into WordPress
- wp_set_object_terms returns 500 error when called through AJAX function
- Create custom admin page with custom text fields
- How to generate customized filtered output for the gallery
- Multisite – Display different header content based on which site is accessed
- List categories assigned to a post
- Call get_template_part() custom permalink
- Display Year and Month from custom field + Age Calculator
- php string inside shortcode does not work
- No Authors for custom post type
- How to pass username into form that sends data to database
- which php or css file has generated an inline style in WordPress that overwrites my css
- Change body_class() PAGE to HOME
- Custom taxonomy pagination shows 404
- duplicating page templates
- Upload multiple files via ajax from an HTML file input
- hide “Open in New Tab” checkbox in link field
- Side bar only if it’s not a single post or a specific page