Title: New plugin: Post Thumbs
Last modified: August 18, 2016

---

# New plugin: Post Thumbs

 *  [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/)
 * Hi everyone,
 * I made a new plugin called [Post Thumbs](http://theblemish.com/post-thumbs-plugin/)
   to share. It has barely been tested, so if anyone tries it and has some problems
   hopefully I’ll know what’s wrong. It works on my site fine.
 * What it does is scan a post for an included image and convert that image into
   a thumbnail to be used in The Loop. You could use this to show a list of posts
   as thumbnail links if you wanted. It will only work for images that reside on
   your server. No support for cross domain images as of yet.
 * The documentation is shoddy, but it’ll have to do for now. If anyone has any 
   suggestions, feel free to reply. The plugin is [here](http://theblemish.com/post-thumbs-plugin/).

Viewing 15 replies - 1 through 15 (of 84 total)

1 [2](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/5/?output_format=md)
[6](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/6/?output_format=md)
[→](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/2/?output_format=md)

 *  [halfbloodprince](https://wordpress.org/support/users/halfbloodprince/)
 * (@halfbloodprince)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462356)
 * Nice work, sunscream. I think a lot of people are going to like this plugin —
   I know I like it! I’ve been waiting for something like this for a long time!
 * Your site looks pretty decent as well 🙂
 *  [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462521)
 * i have this error:
 * Warning: getimagesize(/home/.dodge/user/domain.com/images/image.jpg): failed 
   to open stream: No such file or directory in /home/.dodge/user/domain.com/wp-
   content/plugins/post-thumb/post-thumb.php
 *  [WPChina](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462522)
 * This looks great! However, is it possible to limit it to only one category? For
   example, I only want to show the most recent 8 posts from cat=3. Is this possible?
 *  [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462524)
 * for me don’t work, the plugin doesn’t create any thumb…i don’t know which is 
   the problem
 *  [WPChina](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462542)
 * Nope, I can’t seem to get this working… do you have clearer details on what to
   include in the loop? Sorry, I know I am slow sometimes…. 😉
 *  Thread Starter [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462545)
 * @Macromail
 * I think that problem may be related to the base path you have to set. I would
   suggest making a small file called test.php and upload it to your root folder
   on your server. In test.php, write
    ` <?php echo $_SERVER['DOCUMENT_ROOT']; ?
   >
 * Navigate to that file in a browser and it will echo the base path you should 
   use (hopefully). Did you set the base path to “/home/.dodge/user/domain.com”?
 * [@wordpresschina](https://wordpress.org/support/users/wordpresschina/)
 * I’m not sure which part you are having problems on, but this is what I have put
   in for my sidebar.
    ` <?php $posts = get_posts('numberposts=6&offset=9&order=
   DESC'); foreach($posts as $post) : setup_postdata($post); $post_link = tb_post_thumb(
   true,$post->post_title); if ( !empty($post_link) ) { echo $post_link; } endforeach;?
   >
 *  [WPChina](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462549)
 * Ah, ok, great, yes using your code works–almost. I have the pics appearing now
   just fine. However, there are no links on them to their respective posts… also,
   is there a way for me to line them up one on top of each other, instead of in
   a row?
 * Tks!
 *  Thread Starter [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462559)
 * For linking, instead of just echo $post_link, you could do this.
 * ` if ( !empty($post_link) ) {
    ?><a title="<?php the_title(); ?>" href="<?php
   the_permalink(); ?>" class="highlight"><?php echo $post_link; ?></a><?php } endforeach;
 * You could use an unordered list for putting them on top of each other and use
   css to format it however you want.
 *  [WPChina](https://wordpress.org/support/users/wordpresschina/)
 * (@wordpresschina)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462566)
 * Perfect! Works fine now. 🙂
 * This is an awesome plugin!
 *  Thread Starter [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462609)
 * For anyone using this, it has been updated. You can now specify a regular expression
   to check if a post has a video file (actually I guess anything) and use a different
   default image for that. Just make sure you use the right regex like for wp-extreme
   video it will need to find [gv data=… Also, fixed some coding issues for crop/
   resize and added an option to crop an image after resizing. Remember to escape
   your regex on double quotes.
 *  [thenewsguy101](https://wordpress.org/support/users/thenewsguy101/)
 * (@thenewsguy101)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462610)
 * I access my website at [http://steve.asmallorange.com/~username](http://steve.asmallorange.com/~username),
   and because of the tilde, I get the following error:
 * `Warning: preg_match() [function.preg-match]: Unknown modifier '~' in /home/username/
   public_html/wp-content/plugins/post-thumb.php on line 45`
 * I replaced it with `%7e`, but that gave me the same error for the `%`. Am I doing
   something wrong? Help appreciated, this plugin would be perfect for [what I need.](http://wordpress.org/support/topic/89851?replies=3)
 *  Thread Starter [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462611)
 * I have uploaded a fixed version. Please tell me if you still get the same error.
 *  [thenewsguy101](https://wordpress.org/support/users/thenewsguy101/)
 * (@thenewsguy101)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462612)
 * Nope, I’m getting the same error. I noticed that all my settings were saved, 
   even though I deactivated, reloaded correct plugin files, and activated.
 * Is there something else I need to do to remove the plugin, maybe?
 *  Thread Starter [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462613)
 * Oops, sorry. Please, download again. The fix seemed to have not uploaded correctly.
   Right click, save as just in case it’s still cached. Settings should still be
   saved.
 *  [thenewsguy101](https://wordpress.org/support/users/thenewsguy101/)
 * (@thenewsguy101)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/#post-462614)
 * Good news: Errors are gone! 😀
 * Bad news: Image still hasn’t appeared. Since there’s no error, I’m assuming it’s
   detecting the file and all the paths are correct, right?
 * EDIT: It’s not a permissions error. I tried echoing the value of the tag instead
   of displaying it automatically, and it displayed the link. I might use that as
   a workaround, but that’s where the problem is, FYI.
 * By the way, thanks a lot so far. It’s really a nice plugin, and I’ll definitely
   link back to you once the site’s finished. 🙂
 * And here’s my HTML/PHP:
 * `<div class="post-image"><?php tb_post_thumb(true); ?></div>`
 * Final question: Does the plugin work if my index uses `the_excerpt()` and not`
   the_content()`? If so, does it check the excerpt for images, or only the content?

Viewing 15 replies - 1 through 15 (of 84 total)

1 [2](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/4/?output_format=md)
[5](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/5/?output_format=md)
[6](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/6/?output_format=md)
[→](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/2/?output_format=md)

The topic ‘New plugin: Post Thumbs’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [category](https://wordpress.org/support/topic-tag/category/)
 * [generated](https://wordpress.org/support/topic-tag/generated/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 84 replies
 * 27 participants
 * Last reply from: [bakalek](https://wordpress.org/support/users/bakalek/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/new-plugin-post-thumbs/page/6/#post-462745)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
