Basic example to produce the upload directory URL. More in-depth break down of the data returned.
Search the Wiki
Redirect a Page Using Custom Fields
Today, I wanted to share a very quick tip that will allow you to insert an internal or external URL in a custom field for a page, and when a user visits that page, they will be redirected to the URL you put in the custom field. Why would you need to do this? Well, Full Article…
Query a random post
Here’s a random post snippet I used on teh Better For Business website to feature a different Advisor on each page load.
Full page CSS background image
We visited this concept of re-sizeable background images before… but reader Doug Shults sent me in a link that uses a really awesome technique that I think is better than any of the previous techniques. This technique and the above background image is credited to this site. Here is what this technique is going to Full Article…
Sidebar menu with a child pages regardless of depth – WP Engineer
This article was taken from WP Engineer: http://wpengineer.com/display-always-subpages-in-sidebar/ In this article I want to show an example in which are the main pages in a horizontal navigation. The related sub-pages are displayed in the sidebar when you click on the main page. For better understanding we take the following page structure: Home Software Image Editor Full Article…
Post Thumbnails – Revisited
This article was published on the Matt Brett’s website here: http://mattbrett.com/2010/04/wordpress-post-thumbnails-revisited/ Shortly after the release of WordPress 2.9, I published my technique for bulletproof post thumbnails. Since then, it’s evolved yet simplified into a more robust solution, specifically for use in WordPress themes. The problem, was that each image uploaded was generating a new set Full Article…
Remove the WordPress version number from the wp_head function
And there’s as a whole load of other elements you can remove as well. Original article here: http://rjpargeter.com/2009/09/removing-wordpress-wp_head-elements/
Fix a Cufon Text Replacement flash of unstyled content
This article by Chris Wallace solved the flash of unstyled Cufon text replacements mainly seen in IE6. You can see my first use of this on the Paparazzi website. Just under the opening <body> tag, you should add the following line of CSS, making sure to specify the items you are styling via cufón: Then at Full Article…
NextGEN Gallery – Shortcodes
Here’s a list of all the NextGEN Gallery shortcodes I am aware of. Remember they can be usied in templates with the do_shortcode function as follows: When writing a page/post, you can use the follow shortcodes: For a slideshow : [slideshow id=x w=width h=height] Example : http://nextgen-gallery.com/slideshow/ For a album : [album id=x template=extend] or Full Article…
Shortcodes in PHP templates – do_shortcode
I only just discovered how to use a shortcode function which doesn’t have a template tag in a php template. Use the do_shortcode function! Use the functionand necessary shortcode as in the following example: