How To Make Your WordPress Post Look Nice When Shared On Facebook

How To Make Your WordPress Post Look Nice When Shared On Facebook

Have you ever wondered how your WordPress posts might look when they’re shared on Facebook? If you’ve ever shared a link on your Facebook account, you’ve noticed the nifty Title, Image and Description that get automatically loaded to provide an attractive link. Depending on how your particular theme is built, sometimes you’ll have to cycle through several images, before the …

WordPress Thumbnails Outside The Loop

Occasionally you’ll need to fetch a posts image outside of the loop. <?php $thumb = get_post_meta($post->ID,’_thumbnail_id’,false); $thumb = wp_get_attachment_image_src($thumb[0], false); $thumb = $thumb[0];?>   <img src="<?php echo $thumb; ?>" alt="" /> Combine this with the Timthumb script for control over image size. IE:   <?php $thumb = get_post_meta($post->ID,’_thumbnail_id’,false); $thumb = wp_get_attachment_image_src($thumb[0], false); $thumb = $thumb[0]; if ( has_post_thumbnail() ) { …

Remove and Prevent Revisions in WordPress

I recently noticed that a particular post had built up about 10 or 15 revisions for it. I started thinking that of all the posts I have, there have to be quite a few revisions and therefore are creating a hefty sized table in my database. This was run on my WP 2.8, but should work for 2.6 and up. …

Web Design Tricks

Here is a round up of some very useful tricks and snippets for web designers. Resizeable Background Image with jQuery 15 Wicked CSS Tricks Build a jQuery Interactive Map Better Way To Register the WP Sidebar

Comment Design For WordPress 2.7

If you’re a WordPress theme developer, I’m sure you’ve run into the problem of styling, and altering comments in your theme. Now that comments are called through a loop to allow for the much anticipated threaded comments feature, we’ll have to make use of our function file to style the comments. If you’re like most every other developer, the first …

I Broke Up With #

And I’ve been steady with javascript:; ever since. Ever since I’ve become friends with jQuery, I’ve found that using # inside an anchor href has become occasionally overly jealous and sometimes outright psychotic. After these past incidences, which usually fall in line with using fun stuff like localScroll and scrollTo, I’ve decided to tell # to # sand, and strictly …

Adding TimThumb To Your WordPress Theme

TimThumb PHP Script is a custom image-sizing script, that allows you to produce a cropped and sized version of an image. These are great to use along with a WordPress Magazine Theme. TimThumb has recently been released as open source, and here I will walk you through adding TimThumb to your WordPress theme.

Measure Page Elements The Easy Way

Perhaps you’re the guy who still has to hit the “Print Screen” button, paste into Photoshop, and use the marquee tool to measure the pixel width of an element in a website you’re working on. If so, here are a couple alternatives. 01. XRAY Bookmarklet My first choice, is to make use of XRAY. It is just a javascript that …

Adding Shadowbox to Magento Ecommerce

Here is a tutorial on how to add the Shadowbox modal box to your Magento powered online store. For those unfamiliar with Magento, it is the latest and greatest in open-source eCommerce software. Varian has done the online communi-tay a great service by building a shopcart the right way, from the ground up. Thanks Varian! Granted, Magento has a strong …

Dreamweaver Syntax Highlight Tip

I use Dreamwweaver CS3 for all of my code editing, and I currently have the pleasure of working with the new Magento Shopcart Software. While adding Shadowbox to the cart, I ran into the small problem of Magento template files that use the rare .phtml file extension. As Dreamweaver by default does not color code the syntax, it makes it …

Chad Von Lind, Webcraft, Leathercraft, Bushcraft © 2013. Chad Von Lind.