Skip to navigation

Patrick's Programming Blog

Patrick's Programming Blog

Build cool stuff. Share cool stuff. Repeat.

  • Home
  • Return to Content

Main Menu

  • Home
  • About Patrick
  • Tools
  • Contact
  • Privacy

Tag Archives: post meta data

February 27, 2013

Delete Orphaned Post Meta Data in WordPress

Sometimes while developing a new plugin you have to do lots of database work including creating posts, editing posts, and deleting posts. All of these actions affect the post meta data table and if you aren't careful with how to manage the post meta data you'll have thousands and thousands of rows of data. By deleting orphaned post meta data (meta data belonging to posts which no longer exist) you immediately remove thousands of records that weren't doing anything.

Continue Reading…

  • Code Snippets
  • 36 Comments
  • post meta data, sql, wordpress
  • Patrick Rauland

Hi there!

I'm Patrick. I love talking about business, product management, & e-commerce. I love chatting to small business owners & entrepreneurs so feel free to reach out.
Speaking in Phoenix

Powered by WordPress & Highwind.

Back to top