RSS Feed

a playground of art, photos, videos, writing, music, life

 


You are here







Random Quote

The stories people tell have a way of taking care of them. If stories come to you, care for them. And learn to give them away where they are needed.
-- Barry Lopez


 

Blog - Blog Archive by Month - Blog Archive by Tag - Search Blog and Comments

<-- Go to Previous Page

Everything is a Post

 

In my search for ongoing work, I've stumbled into a WordPress gig. Or gigs. Depends on how it goes.

So I hadn't actually written anything yet - still trying to grasp the platform, and then it occurred to me: in WordPress, everything is a post. Literally. And every post gets a page.

If you're creating a site about dogs and cats, and you needed to create relationships between the cats and dogs, then you create a post_type for Dog and for Cat. Each dog and cat has their own page. Any extra information about them gets dumped into a postmeta table. In that table is a field called "value" where you can dump anything you like - but here's the thing: for every value you need to store, you're not only forcing a read/write each time, but you're dumping a ton of data for every entity/object/post.

I have a way to deal with that, fine, but everything is a post?

In other words, I've always known that programming and the database schema should represent reality as closely as possible. And hey, guess what: a fundraising campaign is not similar to a basketball drill is not similar to a blog post. The post metaphor is brilliant for organizing and displaying pages about content, but it falls far short of being true to life for everything.

For example, creating an accounting system in WordPress seems ludicrous because it's the wrong tool for the job. But I think it depends on how you do it, and I think I have a way to achieve something like that.

Why does this matter? My work on 247Toolset, as it turns out, bears resemblance to WordPress in its approach to themes and functionality. Nothing special about that - many other custom sites do this very thing. But some of the special features of 247Toolset might be easily adapted to WordPress plugins.

So, I have a few ideas about what might grab the WordPress community. I'll be testing them out later. In the meantime hopefully, I hope to have enough development accomplished by Monday to impress a new client.

 


by Brett Rogers, 6/1/2013 11:40:09 PM
Permalink


Comments

Add Your Comment:
Name (required):
Web Site:
Remember Me:   
Content: (4000 chars remaining)
To prevent spammers from commenting, please give a one-word answer to the following trivia question:

On your hand, there are four fingers and one what?