Welkom bij mijn persoonlijk portfolio! Hier vind u mijn werken en eigen projecten. Ik ontwerp, bouw en programmeer professionele en gebruiksvriendelijke websites.

CSS vlinder

SEO Friendly Post Image wordpress plugin (ENGLISH)

JR Post Image is a light-weight plugin that displays an image 'attached' to a post in a SEO friendly way. Can be used on the frontpage of your blog. The plugin can also be used on a post/page, to show all images attached to the post. (All images in Image Gallery).

» Download now

Preview / Demo

Images can be styled using CSS. By default, images are class 'jr-post-img'. Also check out my website NetbookInfo.nl, the plugin is used on the frontpage and every post/page.

Wordpress Post Image preview example 1

Example 1: 'Make link' enabled
The image links to the post.

Wordpress Post Image preview example 2

Example 2: 'Make link' disabled
Just the image is showed, not clickable.

Features

  • Makes your Wordpress blog looks nicer
  • SEO friendly, automatically fills in alt-tag, and image dimensions
  • Always uses the right image dimensions, as set in your Wordpress admin panel (under Settings->Media 'thumbnail' size)
  • Does not slow down your blog, because the thumbnails are already generated by Wordpress itself by default!
  • Very lightweight, small code

Installation

  1. Upload jr-post-image.php to the /wp-content/plugins/ directory and activate the plugin
  2. Add the following code to your index.php theme file (for front page), that's where the image will show up:

  3. Code:
    1
    2
    3
    <?php if ( function_exists('jr_post_image') ) { 
        
    jr_post_image($id); 
    ?>
  4. Go to Settings -> Media, and change the 'Thumbnail' dimensions.
  5. Upload images to a post, you don't have to insert them in the post itself (as long as they're in the gallery it's OK)

You can change additional settings under Settings -> JR Post Image. Need help implementing JR Post Image? I'll help you.

JR Post Image Configuration Page Preview

Wordpress Post Image configuration page preview

Show image list

You can also use this plugin to show all/some images attached to a post by adding the following code to your single.php or page.php theme file:

Code:
1
2
3
<?php if ( function_exists('jr_post_image') ) { 
    
jr_post_image_list($id3); 
?>

In the above example, 3 is the number of images that will be showed. In the configuration panel, you can change settings like Lightbox support, Before and After Image Code, Skip First Image and more.

Disable Post Image for specific post/page

JR Post Image can be disabled for a specific post/page by adding a custom field to the post/page named 'jr_nopostimage' with the value 'true' (without quotes). Then the post image won't be showed in the post itself, but it still will be showed on the index page.

Coming soon:

  • Configuration option to change the image CSS classname (default .jr-post-image)
  • Even lighter, faster release

Do you have a feature request? Let me know.

Like this plugin?

Developing plugins takes lots of time, any donation would be apprecciated.

Copyright © 2010 Jacob Ras.nl | Alle rechten voorbehouden. Privacyverklaring. Valid xHTML en CSS.