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 want to add a check option to the wordpress admin sidebar when I am writing a post or a page to display a specific widget. I tried display-widgets plugin but I want to be able to show a widget directly while writing the post.

Or is there is another way to do this it will be OK.

share|improve this question
    
Other than the checkbox on the post edit page, does the display-widgets plugin do what you want? –  s_ha_dum Nov 8 '12 at 15:55
    
The plugin is ok, but I want another easy and speed solution. –  Ahmad Ajmi Nov 8 '12 at 15:59

1 Answer 1

up vote 0 down vote accepted

Barring the discovery of a plugin that does this already (I'm not aware of any that specifically do what you want) you'll need to create your own. add_meta_box and add_filter('widget_display_callback', $instance, $widget, $args) should be the bulk of what you need

share|improve this answer
    
This what I have done after a long time of search and it works fine. Thanks –  Ahmad Ajmi Nov 9 '12 at 19:43

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.