Adam Trickett

Website designer & developer

Archive for the ‘Code’ Category

A sign of things to come...

0
a-sign-of-things-to-come

Oh boy do I have something big cooking up. Over the next couple of weeks I will:

  • Publish a post with photos from my recent Melbourne trip.
  • Implement an advanced gallery layout and feature set using NextGen Gallery on my site for all images stored within that plugin.
  • Write and publish a full article/tutorial/technical-break-down of what I’ve built.

It’s been a fun few days coding this one.

Custom Post Type 404 you say?

0

After moving my WordPress install out of a directory and turning it into a Multisite install, I found the problem that my Portfolio (which is based off a couple of Custom Post Types, vanished without a trace. I wasn't aware… [Read More]

Trim and format Wordpress post content as an excerpt

0

By default, when you access the Wordpress $post object, the $post->post_excerpt item is always empty UNLESS you manually handcrafted an excerpt for that particular post. This portion of code is a workaround if you only need the excerpt. It trims… [Read More]

Aside #344

0

I’ve been using this little snippet for this sites print styles. It grabs (via CSS!!!) the alt attribute and crams it in there as HTML.

img.as-text { content: attr(alt); }

I might expand upon this later. Kudos to @jakegonzales for spotting that one.