here:
<?php
if ( has_post_format( 'image' )) {
?>
<a href="https://wordpress.stackexchange.com/questions/21659/<?php the_permalink() ?>">
<?php $image = catch_that_image();
if( $image ) { ?>
<img src="<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo $image; ?>&h=240&w=280" class="index" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
<?php } ?>
</a>
<?php
} ?>
Related Posts:
- A better code for no post format?
- How to change the case of all post titles to “Title Case”
- Dynamically add id to heading tags
- Confirmation box when submitting post for review
- Ajax Load More Posts in Category Page
- Publish pending article from front end with a button?
- List latest posts in WP-Admin
- Update all posts automatically when using post_meta
- Post Format Archive template name for theme folder?
- Display posts for a single post format
- Restrict users from editing post based on the age of the post
- Get post only from ‘standard’ post format
- Change slug with custom field
- How can I add dropdown widget/box to admin post page?
- Restrict access to post if it is currently being edited
- Getting an alphabetic post list with two letters onclick on letter
- Create new category upon save based on post information
- which action to hook to in order to perform post-publish action
- Strange switch_to_blog() issue
- How to edit layout of a particular post format?
- POST from jQuery to PHP
- Search widget breaks when using multiple loops?
- Change post format using custom field
- How to enqueue scripts depending on post formats?
- $post object is null
- Advanced Custom Fields – Storing array value for further usage
- Function to show random posts from a category
- How to load a different header based on post format?
- str_replace the_title(); blues
- Tumblr-like Post Types for WordPress
- Accessing post->ID outside of the loop for listing child pages
- how to set beforsend option in wordpress ajax methods
- Remove certain post-formats from showing in blog?
- Display post category in foreach loop with category link
- WordPress Custom Fields (Checkboxes with multiple values)
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Most liked page not displaying posts
- How to make number of blog posts a custom field?
- How to Link to all posts that have the Standard Post Format
- How to use format post in a pertinent way
- Creating a post from data returned from HTML form
- List authors with the last post title and order by last post date
- Display post category in foreach loop
- Page template is accessing the incorrect posts?
- Is it possible to customize the post according to post format in single.php?
- Can’t get full post title if there a spaces in title
- Get post meta retrieving wrong value
- Adding a user’s ID behind the tag ref link address
- How can I remove the first two words and shorten get_the_title()
- Audio post format with Advanced Custom Fields
- Wrap posts p tags in div
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Dark Bar at the top of wordpress page can’t be seen?
- How to add PHP code snippet to all Post pages?
- How to display only one category in a custom post type?
- Display message depending on capability outside loop
- Limiting the amount of posts retrieved by the loop
- Hide content from Post Preview
- How to get the next and previous image title from attachment or gallery?
- displaying the categories post
- Adjust the order for returned posts
- How To Use Custom Fields With .mp3 Links
- Defining ‘last’ class on foreach blog posts
- Categories Listing and Highlighting current category item
- How can I globally italicize list of texts in the UI database or Posts? [closed]
- How to get all posts in gallery post format template
- Post Format problem
- How can I add WordPress Audio Player as featured audio in Audio Blog Posts?
- How to limit the number of results for all query_posts on mysite
- Show a Category Specific Info Box
- Rewrite a specific Post Format to URL slug
- How to get all the terms of a post
- Get first comment link on the post itself
- User driven content problems
- How can i retrive the movies, trailers, news in a single page using search
- How can I create a menu items from meta box based on users input
- Older entries link within a category page
- How do I display a full post, not just an excerpt?
- Remove read more
- Insert new post for each user infinite loop error
- List direct children of page
- Unable to get posts with category on my page
- Specific Post Format Image Thumbnail
- wordpress radio button on single post page
- How *not* to show the last post on the latest posts list
- Create post from form with image
- Exclude a ‘portfolio’ custom category?
- Display a custom field rating system in the front end
- get value from post to sidebar
- Echo author slug in post edit page
- Adding a content rating system
- Post Format Status [closed]
- How to customize blog post titles to render a YouTube logo on posts with an embedded video?
- Post meta not working
- Post page overwrite the custom blog page
- How display related post only in Default category on single
- Change published date and time using SQL query for page in every 5 hour
- Why is my custom post content only viewable when signed into WordPress?
- Older blog posts not showing up on WordPress
- user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing