RSS Feed

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


You are here

Random Quote

Who wants to become a writer? And why? Because it's the answer to everything. To 'Why am I here?' To uselessness. It's the streaming reason for living. To note, to pin down, to build up, to create, to be astonished at nothing, to cherish the oddities, to let nothing go down the drain, to make something, to make a great flower out of life, even if it's a cactus.
-- Enid Bagnold


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


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:

If you're very sick, what medical professional would you go to see about it?