How put links in wordpress dynamic sidebar?

If you useWidget Logic it adds a new filter widget_content which you can hook your function to and add link to it somthing like: add_filter(‘widget_content’,’add_link_to_widgets’); function add_link_to_widgets($content){ return $content . ‘<br /><a href=”http://www.domain.com”>my link</a>’ } Update You are missing the point, the plugin is great if you want to use his ability to limit the … Read more

A form in a custom widget

I remember a support topic i read with regard to a problem when you use the name name for one of your post fields, try prefixing your input names. <input type=”text” name=”my-name” … And see if that helps.. Follow-up #1 I performed a simple test inside a widget.. if( isset( $_POST ) ) { print'<pre>’;print_r( … Read more

Hooking in to replace the Sidebar/Widget areas

You should look into having your sidebars utilize the remove action function. Then you can remove a sidebar and replace it in a function any number of ways. For instance (this examples using a conditional based on a page called some-page. function change_sidebar_yay() { if ( is_single(‘some-page’) ) { remove_action( ‘old_sidebar’, ‘your_function’ ); //this is … Read more

Custom random quote widget breaks when used in multiple sidebars

No parent necessary: the difference between a not-working widget and a working widget was this: $text1 = apply_filters( ‘widget_text1’, $instance[‘text1’], $instance ); vs: $text1 = apply_filters( ‘widget_text1’, empty($instance[‘text1’]) ? ” : $instance[‘text1’], $instance, $this->id_base); I realized putting multiple Random Text widgets on the same page, their titles worked, but their text content did not. So … Read more

how to put functions inside of widgets

there are a few way to run a function in widgets: option 1 – ShortCodes You can create a custom shortcode and run that function by entering the shortcode into a simple text widget: //this is to make sure WordPress renders the shortcodes in a text widget add_filter(‘widget_text’, ‘do_shortcode’); add_shortcode(‘my_short_code’,’my_function’); function my_function(){ //do whatever you … Read more

widget dropdown menu code

The format of the selected() function you are using is incorrect. selected() can only be passed two variables, you are passing three. Please see this codex article for help: http://codex.wordpress.org/Function_Reference/selected Without you pasting more of your code I cannot see how to fix your above code.