WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom widget - checkbox not working partially (2 posts)

  1. Rakesh Raja
    Member
    Posted 1 year ago #

    Hi

    I have created a custom call me back widget.. Following is code..

    http://pastebin.com/TTz85mFU

    Actually check box is working... but checked status is not updating and staying there for example if I click on it means If I checked.. its not staying checked..

    Update code seems fine.. can you guys check and let me know..

    Regards

  2. Rakesh Raja
    Member
    Posted 1 year ago #

    here is the solution.. the code I used was valid till 2.8.. in latest version.. I need to use "on" instead of "true".. like

    checked( $instance['show_sex'], true ) doesnt work but i need to use

    $instance['show_sex'], 'on' )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.