I’ve contributed!

Spent a large part of this afternoon with no serious billable stuff to do… which is great becuase it’s given me a chance to do some serious coding research.  And I’ve found WordPress gold!  Highly customised custom fields!

I’m not going to get seriously into it, as it’ll bore the pants off most of you… but I found some GREAT code (and discussion) on how to edit Custom Fields in WordPress, allowing you to style up custom fields as combo boxes (or drop down select/option boxes) and in fact this code could easily extend to radio buttons or other field input types.  I shared this new found knowledge with the boss man who responded with “can you do attachments?”

Not one to ignore a geek challenge I set to and used the built in WordPress media manager in combination with the code I had found (link above).  My new code looks up all attachments of the current post.

If this interests you at all you can read it/steal it from www.pastie.org here: http://pastie.org/1056485

Geeking Ends.

This post tagged as: , ,

Leave a Reply