Thursday, May 6, 2010

TutZone- Tutorials, Design news and Inspiration

TutZone- Tutorials, Design news and Inspiration

Link to TutZone

Post Treatment – Show Related Posts Without a Plugin

Posted: 06 May 2010 05:28 AM PDT


Using too many plugins on a Wordpress installation usually slower the loading time of the site, especially when same can be achieved using a simple piece of code. Though its not always wise to use codes in your wordpress themes, especially if you are not familiar with them. Here we will show you how to Show Related Posts Without Plugin which will be based on the tags you will use in your posts. Hope this helps some.

Procesure:

Note: Do take backup of your theme before you try this.

01. Go to Appearance => Editor.
editor

02. Then choose functions.php file from right hand side and add below code:
functions.php

function related_posts_shortcode( $atts ) {
extract(shortcode_atts(array(
‘limit’ => ‘5′,
), $atts));

global $wpdb, $post, $table_prefix;

if ($post->ID) {
$retval = ‘<ul>’;
// Get tags
$tags = wp_get_post_tags($post->ID);
$tagsarray = array();
foreach ($tags as $tag) {
$tagsarray[] = $tag->term_id;
}
$tagslist = implode(‘,’, $tagsarray);

// Do the query
$q = "SELECT p.*, count(tr.object_id) as count
FROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p WHERE tt.taxonomy =’post_tag’ AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND tt.term_id IN ($tagslist) AND p.ID != $post->ID
AND p.post_status = ‘publish’
AND p.post_date_gmt < NOW()
GROUP BY tr.object_id
ORDER BY count DESC, p.post_date_gmt DESC
LIMIT $limit;";

$related = $wpdb->get_results($q);
if ( $related ) {
foreach($related as $r) {
$retval .= ‘
<li><a title="’.wptexturize($r->post_title).’" href="’.get_permalink($r->ID).’">’.wptexturize($r->post_title).’</a></li>
‘;
}
} else {
$retval .= ‘
<li>No related posts found</li>
‘;
}
$retval .= ‘</ul>
‘;
return $retval;
}
return;
}
add_shortcode(‘related_posts’, ‘related_posts_shortcode’);


03. Save file. Now open single.php file and place following lines where you want your Related Posts to appear:
functions.php

[related_posts]

04. Save file and you are done.


For New Wordpress Users:

You can try out following recommended plugins:

Yet Another Related Posts Plugin
Or
Similar Posts

Further Resources:

That concludes this simple and useful tutorial. Hope you like it.

Tuesday, May 4, 2010

SloDive - Design Resources and Inspiration

SloDive - Design Resources and Inspiration


Astounding Illustrations Made Out Of… Paper? – I.D. 26

Posted: 04 May 2010 07:21 AM PDT


Older Related Articles:

Inspirational Work 01


Inspirational Work 02


Inspirational Work 03


Inspirational Work 04


Inspirational Work 05


Inspirational Work 06


Inspirational Work 07


Inspirational Work 08


Inspirational Work 09


Inspirational Work 10


Inspirational Work 11


Inspirational Work 12


Inspirational Work 13


Inspirational Work 14


Link To Her Portfolio

Portfolio

Related posts:

  1. Awesome Illustrations by Jang Keun Chul Artworks – I.D. 22 Jang is from South Korea and another great example of...
  2. 15 Amazing Digital Illustrations by Vincent Fraser – I.D. 18 Vince Fraser is a freelance digital illustrator / designer based...
  3. 14 Beautiful Illustrations by Dani Kaulakis – I.D. 17 Armed with photoshop and a ton of natural ability, Dani...

Monday, May 3, 2010

TutZone- Tutorials, Design news and Inspiration

TutZone- Tutorials, Design news and Inspiration

Link to TutZone

Find Best Stock, Vector and Custom Icons from Icons Land

Posted: 03 May 2010 08:02 AM PDT


Ever got tired of searching perfect icons fitting into your applications? We all know designers look for perfection in each and every thing linked to their applications including icons. We have ascertained a great solution for "Icons" in Icons-land.com. I personally found it very resourceful and full of fresh and out-of-the-box icon sets. This site offers a high-quality Vista style royalty-free vector icons, stock icons as well as custom icon design which makes it a "must have" for every designer who wants to a spice up the creativity in his/her designs. These icons give you a refreshing change from same old boring icons you were using for so long. All the icons from icons-land.com can be used both for personal and commercial use.
get icons from here


Stock Icons


stock icons
These series of software and web icons are available in seven different sizes and two different formats suiting to your requirements. They are ravishing and have various options in the Weather, Base, GIS/GPS/Map, Point of Interest, Sport, Transport, Hardware, Multimedia, Play/Stop/Pause and Arrow Icons. These icons have been designed in the Vista Style Base to give you conversant affect to your applications. These icons have further variations.


Vector Icons


vector icons
These series of software, print and web icons are available in all sizes depending on your prerequisites. These icons can be scaled to any dimension without compromising on quality of the icons. A vector file does not include DPI so resizing the icon is at your convenience.
These stylish icons come in following options: Weather , Transport, Point of Interest, Sport and Emoticons.


Emoticons & Avatars


emoticons avatars
To compliment your mood this set contains Vista Emoticons, Halloween style Emoticons and Chess Emoticons. They could be used freely in forum, email, instant messenger, blog, messages, software and web or any communication tool.


Custom Design

custom designs


Icons-land.com offers two different type of Custom design sets
• Extending existing stock icon set
• Designing icon set and passing copyright to customer.

A quick Overview of the treasure in Icons-land.com

  • Stock Icons
  • Vector Icons
  • Emoticons and Avatar
  • Custom Design