| bio | website | mroncetwice.com |
|---|---|---|
| location | Chicago | |
| age | 32 | |
| visits | member for | 1 year, 3 months |
| seen | 9 hours ago | |
| stats | profile views | 0 |
I studied illustration, but ended up in web development.
|
Apr 25 |
comment |
unable to save post meta on single field with multiple selects Ah, yes! Now why couldn't I have thought of that? Cheer's for the help ........................................... foreach ($event_infobox_fields as $field) { if($field['id'] == 'event_timeframe') { ...new update script...} else {...old update script...} } |
|
Apr 25 |
revised |
unable to save post meta on single field with multiple selects grammar and capitalization |
|
Apr 25 |
awarded | Scholar |
|
Apr 25 |
awarded | Supporter |
|
Apr 25 |
accepted | unable to save post meta on single field with multiple selects |
|
Apr 25 |
comment |
unable to save post meta on single field with multiple selects So, another question regarding saving the meta, but now with multiple fields.. I had omitted it from my initial question as it seemed irrelevant, but I have another field in the metabox with its own select dropdown. It has been saving correctly all along, but of course your update function in place of the old one disabled this other dropdown as it doesnt have these second-level arrays. So, just now I tried using both your new update function along with my old one. It works fine as far as I can tell- database entries do get updated. My question is this: Is there anything "wrong" with doing so? |
|
Apr 25 |
comment |
unable to save post meta on single field with multiple selects Ah, yes, I kind of figured I just wasn't getting deep enough, but didn't want to sound any more n00bish than I already did. Plus I didn't know how exactly to go about delving deeper in the first place ... In the end this is more of a PHP question than a Wordpress question, too. Anyway, thank you, your answer worked like a charm. And, yea, I know I gotta readjust my check for the "selected" value in the option tags ;) |
|
Apr 25 |
awarded | Informed |
|
Apr 25 |
awarded | Student |
|
Apr 25 |
asked | unable to save post meta on single field with multiple selects |
|
Apr 18 |
answered | Downsides to not using built-in “Posts” post type? |
|
Mar 19 |
awarded | Teacher |
|
Feb 4 |
revised |
WooCommerce: Change default country on the cart page corrected my grammar and added detail to my explanation |
|
Feb 4 |
answered | WooCommerce: Change default country on the cart page |
|
Dec 10 |
awarded | Editor |
|
Dec 10 |
revised |
Woocommerce with metabox plugin added note about declaring a global value in order to get code example working. |
|
Dec 9 |
answered | Woocommerce with metabox plugin |
|
Dec 8 |
answered | Include custom taxonomy term in search |
|
Dec 5 |
suggested | suggested edit on Wrap all post images inside a div element |
|
Jun 28 |
awarded | Analytical |