WordPress and MultiPostThumbnails: Get image URL

0
February 21st, 2012

http://lifeonlars.com/wordpress/how-to-add-multiple-featured-images-in-wordpress/ $imageid = MultiPostThumbnails::get_post_thumbnail_id(‘post’, ‘special-preview’, $post->ID); $imageurl = wp_get_attachment_image_src($imageid,’large’); $imageurl[0]

read more

WordPress comments function reference

0
January 27th, 2012

http://codex.wordpress.org/Function_Reference/wp_list_comments

read more

WordPress category list in columns

0
January 25th, 2012

http://www.bloggingpro.com/archives/2010/01/15/how-to-display-your-wordpress-category-list-in-multiple-columns/

read more

jQuery Shuffle Plugin

0
January 5th, 2012

http://www.yelotofu.com/2008/08/jquery-shuffle-plugin/

read more

jQuery sticky sidebar

0
December 29th, 2011

http://designwoop.com/2011/01/how-to-create-a-jquery-sticky-sidebar/

read more

jQuery Cycle – pause on last item

0
December 15th, 2011

http://stackoverflow.com/questions/6064893/jquery-cycle-plugin-delay-interval-between-slides-question http://jsfiddle.net/7jJe3/ function timeoutfn(currSlideElement, nextSlideElement, options, forwardFlag) { var imgtime = 5000; var blanktime = 2000; if ($(currSlideElement).is(‘img’)) return imgtime; return blanktime; }; $(function() { $(‘#slideshow’).cycle({ fx: ‘fade’, speed: 400, timeoutFn: timeoutfn }); }); I tweaked the code to check if the image was the last one within a container div, and if so, pause [...]

read more

PHP htmlspecialchars_decode

0
December 1st, 2011

http://php.net/manual/en/function.htmlspecialchars-decode.php Needed this when I was pulling content from a custom field in WordPress that was defined in the editing screen as a textarea that was encoding html special characters.

read more

jQuery this with children

0
November 29th, 2011

http://stackoverflow.com/questions/306583/this-selector-and-children jQuery(this).children(“img”);

read more

WordPress: check if a page has children

0
November 24th, 2011

http://wordpress.org/support/topic/ifelse-statement-for-if-a-page-has-child-pages

read more

WordPress: Category custom fields

0
November 16th, 2011

http://en.bainternet.info/2011/wordpress-category-extra-fields

read more

WordPress: get depth of a post or category

0
November 16th, 2011

http://www.devdevote.com/cms/wordpress-hacks/get_depth

read more

WordPress: Getting the top-level parent

0
November 15th, 2011

http://www.yash-patel.com/2008/12/25/getting-the-top-level-parent/

read more

WordPress: Check if a category is an ancestor of a post

0
November 15th, 2011

http://www.blackbam.at/blackbams-blog/2011/10/08/determine-if-a-wordpress-page-or-category-is-in-the-current-ancestorchild-tree-insideoutside-the-loop/

read more

WordPress: Adding an admin user to the database

0
November 8th, 2011

This has come in handy a few times recently: http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database

read more

WordPress: Google Maps Geocoder

0
October 6th, 2011

http://www.onerutter.com/open-source/wp-custom-field-geocoder-update-v-02.html I used a customized version of this with the custom metaboxes library. I had to change the post update action in the geocoder code to ‘save_post’ and give it a priority of 15 so it wouldn’t conflict with the metabox code. I also commented out the response code that displays a geocode error. It [...]

read more