Widget textarea input gets formatted

Try stripslashes to remove the backslash. echo stripslashes( $text ); This is going to replace one slash per slashes group only though, you should first reset all the contents that have multiple slashes. I guess the tab at the beginning is due to the fact that you jump a line before echoing the text. Try … Read more

allow user to style widget backgound per widget

In the default theme, or if you have one that is properly written, each widget has a unique CSS class name, you can simply add it to your style sheet. If it does not, and you want to add a unique CSS class based on the widget placement, as in the order you have drag … Read more

How to display an RSS feed widget inside a page?

if you know php you could add it to a template using wp function http://codex.wordpress.org/Function_Reference/the_widget or there is wp code to pull in a feed and list it http://codex.wordpress.org/Function_Reference/fetch_feed if you want a non coding solution, there are some plugins like: http://webdesign.anmari.com/1649/shortcode-any-widget/

Disable dashboard drag&drop

This will remove the draggable functionality from each widget: jQuery(‘.widget.ui-draggable’).draggable(‘destroy’) You have find a good way to inject this into your code, either through wp_enqueue_script() or echo it inline on the Widget page. To target a specific Widget you would have to do something along these lines: jQuery(‘.widget.ui-draggable’).each(function() { if (jQuery(this).find(‘h4’).text() == ‘Archives’) jQuery(this).draggable(‘destroy’); } … Read more

widgetlogic and permalinks

Changing permalinks should have absolutely no affect whatsoever on the parameters passed to is_page(). Are you perhaps changing the Page Titles instead? Regardless, try passing the Page ID instead of the Page Title to your is_page() array.

How do you categorize pages?

You will only need a one basic function for the taxonomy, it’s really straightforward: register_taxonomy(). If you want to use a custom post type, it’s just as simple: register_post_type() For the widget, it’s a little more complicated. You’ll need to look at how to register widgets, and saving values and such. All of that is … Read more

Register widget only page is a singular of custom post type

Instead of nuking the entire widget, you should put your conditional statements within the widget itself: public function widget( $args, $instance ) { if ( is_singular( array( ‘post_type_a’, ‘post_type_b’ ) ) ) { // display your widget here } } Since you’re not printing $before_widget and $after_widget, there won’t be any output for this widget … Read more