Jetpack

Jetpack by Automattic is a plugin that gives your WordPress site features from WordPress.com. I like it, as the features are quite nice and it should be useful for people transitioning from WordPress.com to self-hosted one.

Posted in Links | Tagged , | Comments closed

Display Author Gravatar in the Loop

If you want to display an author’s Gravatar, this little code should do the trick (note that it only works inside the Loop):

<?php echo get_avatar( get_the_author_meta('user_email'), 48 ); ?>

The second parameter dictates the size of the avatar. More about get_avatar().

Posted in Development | Tagged , , | Comments closed

The Disappearing Meta Value Issue

I’ve been using this Tutplus tutorial to create custom post types, especially the part about creating custom post input. It works nicely, except for the fact that the meta values entered with that input can get deleted completely by WordPress when it autosaves a post. Or if you Quick Edit a post.

It seems to be a WordPress bug Fortunately, someone posted a fix on the comment area. It’s pretty self-explanatory.

There’s also a Trac ticket discussing it, there you can find a more correct fix involving the use of nonces.

Posted in Development | Tagged , | Comments closed

How to Get your Post Thumbnail’s Width and Height

In Settings > Media, you are able to set only the height or width of the Thumbnail images and WordPress will resize them proportionally (i.e.: if you have a fixed height, then the widths will vary depending on your uploaded image dimension, and vice versa).

Inside the loop, you can get a thumbnail’s width, height and URL using this code:

$imgdata = wp_get_attachment_image_src( get_post_thumbnail_id(), 'thumbnail' );
$imgurl = $imgdata[0]; // the url of the thumbnail picture
$imgwidth = $imgdata[1]; // thumbnail's width
$imgheight = $imgdata[2]; // thumbnail's height

For the second parameter of the wp_get_attachment_image_src function you can also use ‘medium’, ‘large’ and ‘full’. They correspond to the dimension for the other sizes in Settings > Media.

Read more about the wp_get_attachment_image_src function.

Posted in Development | Tagged | Comments closed

Improve your WordPress Navigation Menu Output

A tutorial on adding description to your WordPress 3.0 menu links. Might be a nice update for Pico.

Posted in Links | Tagged , | Comments closed

Custom Shortlinks for WordPress

Have your own short domain name for the purpose of shortlinking? Here’s an easy way to combine that with your WordPress install.

Posted in Links | Tagged | Comments closed

Web Performant WordPress

This is such a finely written (and designed) article.

Posted in Links | Tagged , | Comments closed

Would WordPress Sue The Maker Of Thesis, A Leading WordPress Theme? – with Chris Pearson and Matt Mullenweg

The great debate.

Posted in Links | Tagged | Comments closed

The Quick Start Guide to Using Google Webmaster Tools With WordPress

GWT is a great, frequently updated features like showing you search queries volume, malware and crawl error diagnostics and links to your site. If you don’t use it yet, you probably need to. This will help you get started.

Posted in Links | Tagged | Comments closed

WordPress & jQuery Contact Form without a Plugin

I would recommend this either if you want more flexibility or to learn how to code a contact form.

Posted in Links | Tagged , | Comments closed
css.php