Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
11
Impact
~7k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Dec
17
asked WooCommerce Multiple Product Names for Search
Nov
2
answered What is the id for the widgets section of the WordPress theme customizer?
Nov
2
asked Change Customizer section label based on field content
Jun
3
answered Theme Customizer API Live Preview
Apr
20
awarded  Popular Question
Apr
30
awarded  Supporter
May
9
accepted Viddler oEmbed not working with specified width
May
9
comment Viddler oEmbed not working with specified width
Awesome, thanks Otto!
May
9
asked Viddler oEmbed not working with specified width
Feb
16
awarded  Popular Question
Feb
3
awarded  Popular Question
Sep
21
answered Metaboxes not saving data
Sep
21
comment Metaboxes not saving data
Final update: the URL field was not saving because of the last if statement in the save_meta function. If the video_url field either doesn't exist, then the first statement will always be triggered. However, if the value already exists, but is blank, the first statement is also triggered and the add_post_meta function (with the unique set to true) will not be updated. The second evaluation will be true if the metakey exists and is blank, and update_post_meta will create a new metakey if it doesn't exist.
Sep
20
comment Metaboxes not saving data
Update: the date field wasn't displaying data because it was using the input type date, which apparently conflicts with jQuery's datepicker. Switching to a regular text field and everything works nicely. Still working on the URL field.
Sep
20
comment Metaboxes not saving data
I didn't realize I didn't have Debug turned on for my dev site. When I turned it on, I discovered there was an issue with how I registered a stylesheet. Not sure why this affects saving metabox data, but it did. I fixed that and all but two of my metaboxes are now saving. Video URL and the date still don't work. Thanks for your help Helga, I'll post more as I figure this out.
Sep
20
comment Metaboxes not saving data
Yes, I have another meta box on the same page that shows me each meta data's value. I also put a value in the Location field and submitted. The var_dump you recommended and it doesn't show the value I put into the field. Since I found the meta_box plugin, I've been seriously debating switching, but I can't help thinking I'm just one line of code away from having this down.
Sep
20
asked Metaboxes not saving data
Sep
2
awarded  Commentator
Aug
31
awarded  Autobiographer
Jul
17
awarded  Teacher