Wednesday, August 7, 2013

Adding a custom meta box to a custom post type day 2

Continuing off of yesterday, now that I have the CPT (custom post type) publishing problem solved I'm concentrating on the meta box again.  I need to figure out a way to add inputs for inputting data.  How?  I'm not sure yet so I've decided to take a look at this plugin, http://wordpress.org/plugins/ml-slider/, that uses something similar with the add slide button.

I looked at the code from this for a couple of hours and got nowhere.  So I foraged through a bunch of google search results and found code that does exactly what I wanted to do: https://gist.github.com/da1nonly/2057532
I mean it doesn't have the exact columns (inputs) I need but that's for me to change.  First I need to understand the results and it's a bit late for that right now so I'm going to bed.  Goodnight people.

No comments:

Post a Comment