Widget Errors from Uninitialized Options (2 posts)

  1. AJStacy
    Posted 4 years ago #

    I have been teaching myself how to code custom widgets in wordpress and I have most of it figured out except how I initialize my widget options. Currently, when you first activate my events list widget, php gives me errors because it can't find the options in the table, but if I click "save" once, it creates the options and I no longer have a problem.

    My Question is: How do I get them into the options DB beforehand to avoid the error?

    [119 lines of code moderated as per the Forum Rules. Please use the pastebin]

  2. AJStacy
    Posted 4 years ago #

    Any ideas? (bump)

Topic Closed

This topic has been closed to new replies.

About this Topic