Create WordPress Post Thumbnail

March 8, 2012 by · Leave a Comment
Filed under: How-To 

[ad#GA-468x15-content-link]

So you’re wondering how everybody has that thumbnail for all of their posts in their blog’s homepage?

Well, if you’re using WordPress 2.9 (or above) then this will be a simple work for your theme. Otherwise, you would be doing extra work in preparing your theme (by means of using custom field feature).

Two things that you will be working on, are:

  1. Your functions.php
  2. Your corresponding theme file (for instance: the index.php)

functions.php

There are two things that you can define in your theme’s functions.php file. First is the function activation line:

add_theme_support( 'post-thumbnails' );

That line will enable Post Thumbnail User Interface (inside your dashboard) for both Post and Page content types. From now on, you can see an entry field – usually on the right side of your posting screen – for “Featured Image” selection.

Now the second thing is the dimension of your thumbnails

set_post_thumbnail_size( 50, 50 );

You have two options here: box-resizing and hard-cropping. Box resizing shrinks an image proportionally (that is, without distorting it), until it fits inside the “box” you’ve specified with your width and height parameters. For example, a 100×50 image in a 50×50 box would be resized to 50×25. The benefit here is that the entire image shows. The downside is that the image produced isn’t always the same size. Sometimes it will be width-limited, and sometimes it will be height-limited. If you’d like to limit images to a certain width, but don’t care how tall they are, you can specify your width and then specify a height of 9999 or something ridiculously large that will never be hit.

Read more

Twitter for BlackBerry Shortcuts

February 20, 2011 by · Leave a Comment
Filed under: How-To 

[ad#GA-468x15-content-link]

We have suspended UberTwitter and twidroyd for violating our policies.

That what Twitter says, and hence no more UberTwitter from now on. So, now I’m stuck with Official Twitter for BlackBerry application. What bothers me the most is, my habit of working with UberTwitter User Interface shortcuts is causing a challenge with the current environment

So after a quick browse the net, without further a due, here is the list.

Tweet Shortcuts

From a BlackBerry device with a full keyboard

  • To reply to a direct message or tweet, highlight the direct message or tweet.
    Press R
  • To reply to all of the people that are mentioned in a tweet, highlight the tweet.
    Press L
  • To repost a tweet, highlight the tweet.
    Press F
  • To compose a tweet.
    Press C
  • To compose a direct message, on the Direct Messages screen
    Press C
  • To refresh your tweet timeline
    Press D

Read more