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 add product in woocommerce with php code [closed]
- What’s the best way to use the Featured Image for responsive web design?
- How to correctly submit a search form and display the result in an independent page
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Creating custom Woocommerce attribute taxonomies from a plugin
- What is the most efficient way to search users by their display name?
- Passing JSON data from WP Query into AJAX causing NULL errors
- Get used terms by an author as array of strings
- Multiple do_shortcode($content) within one shortcode
- Index showing source code
- How to show only a certain part of the entry title?
- Programmatically add and remove woocommerce product category
- allow subscribers to see private posts without plug in
- How to securely provide a $_POST var in WP_Query with PHP 7?
- If Query In Sidebar
- Unreadable pagination
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- My page.php shows the index.php
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- Function returns text instead of html [closed]
- Next post link on a bootstrap button
- Echo title attribute php
- how to serialize() mysql update data
- Get a value inside a get_post_meta Array
- Using rules in Posts
- How to make a cookie be on the whole site instead of being on a specific page/
- php – Plugin/theme relative PATH/URI
- Save the value of a wp_dropdown_pages
- Search only working on front page (index) , not working on other pages
- Live search from database table
- wpdb getting avatars and author url
- Good RSS Feed Parser to use on php file?
- Client cant see the Updated dynamic content
- Post ID wrong in Functions.php
- Obfuscate links (for SEO purpose) [closed]
- Sortable custom product taxonomy terms via drag and drop
- get value from get_post_meta then reuse it in another get_post_meta
- Header is not displaying on certain pages of wordpress theme [closed]
- Retrieve the whole widget sidebar and pass it inside an html
- Include custom fields in search
- How to access specific product id on other pages/posts?
- Intermittent 503 Service Unavailable Error
- ACF – Get ID of relationship field in flexible content
- Return newly created category by code
- Pulling Products from an API
- Automatically delete posts one by one depending on published time
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- Dropdown menu on custom menu
- Pagination in WP Queries
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Display product_brand with get_the_terms function
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- Cannot Upload Custom Header Image into WordPress Dashboard
- Add comma between variables [closed]
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- echo vs output variable [closed]
- Display Post Titles on top of the_post_thumbnail()
- Contact form with dynamic dropdown and filter
- Critical Error customiser
- AJAX WP_Query’s order and orderby parameters not working