Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i am trying to build a widget that would display a list of top authors on sidebar..

This is not my first widget but it is my second one so my apologies if i am way off..

The problem is that when i drag the widget into the side (in admin ofcourse) and saves it apears no where..later when i check i see after refreshing the widgets page it doesent apear to exist..

here is my widget code: --> http://pastebin.com/Hf4xTUHG

i know it rather langthy but can anyone help / give an idea as to why this is happening?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It sticks if you don't include id_base in $control_ops, when you pass it to WP_Widget in the constructor.

Looking at the core code it looks as though id_base is actually the first arg to WP_widget and the $control_ops array should only carry 'width' and 'height' keys.

share|improve this answer
    
thank alot man!! you saved my.. Sorry to trouble but got any idea WHY THE TITLE ISN'T BEING SAVED ?? –  Sagive SEO Oct 13 '11 at 14:03
    
Got the title to work 2 - all is cool.. thanks for you help again :) –  Sagive SEO Oct 13 '11 at 14:30
    
great. no problem :) –  djb Oct 14 '11 at 16:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.