Widgets are configurable elements used to dynamically build sections of a WordPress theme.

learn more… | top users | synonyms (1)

1
vote
3answers
157 views

Replace dashboard widgets with banner ad

I know it's probably not encouraged, but is there a way to replace the standard dashboard widgets (Recent Drafts, Quickpress, etc.) with a standard image banner ad? I know how to add new dashboard ...
1
vote
2answers
2k views

$post>ID displays wrong post ID

I've asked a question about listing all sub-pages before: Listing all sub-pages? But all the questions were wrong. Anyways, I have now simpler question. global $post; echo $post>ID Works ...
1
vote
2answers
691 views

How can I add an incremental class identifier to my sidebar widgets?

My sidebar widget code in functions.php looks like this... if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Home Sidebar', 'id' => 'home-sidebar-widget', ...
1
vote
2answers
735 views

Using Ajax call in jQuery doesn't work in widget

So I'm in the midst of creating a new conversion widget and I'm having some trouble getting the Ajax call to work in my widget. (works perfectly outside of WordPress). The problem at the moment is ...
1
vote
2answers
1k views

cannot drag and drop widgets since wordpress 3.2.1

I recently updated my site to wordpress 3.2.1 automatically. Now I tried to manage my sidebar widgets, and noticed I can no longer drag and drop the widgets around. If I look into my browser-console, ...
1
vote
4answers
2k views

Completely disabling widgets

How do I completely remove widget support from a theme/plugin ? Like removing the appearance -> widgets page, and prevent WP from loading widget classes and all widget-related stuff.
1
vote
1answer
2k views

Remove/Add widgets from/to the Available Widgets pool

Is it possible to remove/add widgets from/to the Available Widgets pool (either by plugin or editing core files)? There are 3 widget files located at: /wp-includes/widgets.php /wp-admin/widgets.php ...
1
vote
1answer
2k views

Is there plugin to show recent posts from one website in the widget area of another?

I would like to take the titles of recent posts or content related posts from one website and display them in the widget area of another website. I'm sure there must be a way to do this, perhaps some ...
1
vote
3answers
3k views

Adding custom html and standard widgets to sidebar

I want to add both custom html that advanced text widgets can't support and the standard sidebar widgets in the same sidebar. However, when I put a sidebar widget into the theme, it removes all the ...
1
vote
3answers
834 views

Dynamic Sidebars On Multiple Subpages

I am building a site in WordPress. It has multiple subpages, many of which require different sidebars. So, I have a widgetized theme and I have also created a few sidebar widgets. I have written a ...
1
vote
4answers
1k views

How do I stop a widget from displaying on mobile site?

On my main site I have used the search widget in the sidebar. However, the mobile theme I am using (minileven) already has a search box built into its menu bar. This results in a second search box ...
1
vote
2answers
2k views

Shortcode from a widget is wrapped in unwanted <p> element

I'm using Black Studio TinyMCE Widget as a rich text editor widget. In a sidebar I inserted the TinyMCE widget with a [testimonial] shortcode and some content after it. For example: [testimonial] ...
1
vote
2answers
1k views

WordPress “include TEMPLATEPATH” or?

I built something like this: Index Container Widgets Area and I created a widget for that - Categories Widget - Index Container .php with this in: <?php include (TEMPLATEPATH . ...
1
vote
2answers
365 views

Inserting shortcode [stream /] into a Text widget

hi i'm trying to insert a short code into a Text widget but all its doing it showing the code and not processing it. <?php echo do_shortcode(' [stream embed=false share=false width=500 height=560 ...
1
vote
1answer
1k views

Calling the widget id of a mult-instance widget from inside the widget?

I'm trying to output a unique widget ID inside my mult-instance widgets. So far the following hasn't worked. Is there a unique ID and how do I call it? Thanks. function widget($args, $instance) { // ...
1
vote
4answers
729 views

How Can A Widget With Only One Instance Be Defined?

How can a widget which of which only one instance can be used?
1
vote
3answers
66 views

Displaying a widget only on long posts (over X characters)

I'm looking to display a standard wordpress widget only on posts that are over X amount of characters in length (or another method that can roughly calculate the height of of a post.) I am looking to ...
1
vote
2answers
1k views

Retrieving list of a custom post type in a widget without using WP_Query?

I'm using the following widget to retrieve a list of the custom post type jobs: class FeaturedJobsWidget extends WP_Widget { function FeaturedJobsWidget() { $widget_ops = array('classname' ...
1
vote
1answer
161 views

Why does Wordpress stores widget options in a multidimensional array?

I have a widget with 6 different options. When I use get_option, it gives me a multidimensional array, with all my options inside the inner array, like so: $options = get_option('widget_widgetname'); ...
1
vote
2answers
41 views

Show widget when not using SSL

My wordpress site supports http and https. What I want to do is to add a widget when surfing over http that says something like "Surf this site secure" to show the visitor that I also have a secured ...
1
vote
1answer
291 views

Notice: Undefined index: filter in …wp-includes/default-widgets.php on line 382

I'm getting this message on a WP 3.2.1 install with PHP version 5.2.17 Notice: Undefined index: filter in /home/netstewp/public_html/wp-includes/default-widgets.php on line 382 Any idea why?
1
vote
2answers
436 views

Install widget on plugin activation

Anyone know any resources to help me install my widget when my plugin is activated?
1
vote
1answer
326 views

Context aware widgets. My work in progress

I'm working on a simple addition to the widget options to allow the user to set the "context" in which widgets show be shown. Here's what I've got so far, with my questions in the comments... 1) ...
1
vote
2answers
4k views

How to hack recent comments default widget?

I would like to hack the default Recent Comments widget to show also the avatar of commenter. The modification should be really easy, if I change directly the code in default-widgets.php if ( ...
1
vote
1answer
2k views

How to save WP widget instances and options

I'm a little confused about this, even though I have read all of the API and searched for hours. When I activate my plugin I add some values to the options database, e.g. add_option('code','24'); ...
1
vote
3answers
709 views

Using $wpdb object in a widget

I'm trying to make a very simple widget that access tables contained within the same database instance as my Wordpress database, but are not wordpress tables. I'm using the wpdb class according to the ...
1
vote
1answer
470 views

A good way to add a different background image for each page?

I'm working an a Thematic child theme wherein I need to have a unique image decorating each of the site's main pages, from a pre-defined set of permanent images. It would also be ideal to have one of ...
1
vote
5answers
2k views

Recommend a widget plugin that displays page content or rich text

What I'd really like is a nice widget that displays the_content() of a selected page or just has a rich text field and displays what's in that. I figured there would be something like this around, but ...
1
vote
2answers
801 views

what is option_name on database that store the information of current initiate widget in frontend sidebar?

what is option_name on database that store the information of current initiate widget in frontend sidebar ?
1
vote
2answers
34 views

Can I remove a widget area without editing code?

I am dealing with a Wordpress setup which has 2 widget areas. One seems to be breaking the page, and I want to remove it. Here is the screenshot of my widget setup How can I remove the Main ...
1
vote
1answer
433 views

Get a list of all Widgets registered in WordPress admin widgets-area

I'm trying to disable a couple standard widgets in my theme functions.php. Therefore I wrote this little function, which works well: function my_widget_ctrl() { ...
1
vote
1answer
431 views

Forcing the title of a text widget on to a new line in the admin area

I have created some custom widgets based on the standard WP text widget by extending the WP_Widget class. I would very much like to force the title of the widget on to a new line in the sidebar ...
1
vote
2answers
63 views

Disable widgets on specific posts

I run a horror related blog. Google is upset with me for displaying adsense in a sidebar widget for one specific post number (4603) that contains an article about an 18+ topic. How can I disable the ...
1
vote
2answers
335 views

Hooking Into Widget Output Loop

When wordpress sidebar outputs any particular registered sidebar it loop through all widgets that assigned through it and outputs it (i guess). Is is possible to hook into the loop and add some ...
1
vote
1answer
2k views

How to insert widget areas specific to certain pages (or posts, etc.)?

I am developing a theme the pages of which (as well as posts) are so different from the home page that I want different widgets on their sidebars.Is there a way to do it? I'm calling the sidebar on ...
1
vote
2answers
268 views

Sidebar widget to show popular post not working?

This is the code to display popular post on front end, however the problem is the data is not saving from the back end. Like i want to show only 3 popular posts on front-end so i select the option 3 ...
1
vote
3answers
502 views

Wordpress widget/sidebar dividers?

I have a widget sidebar, but I'd like dividers between them. I can achieve this in CSS using boring borders, but I have a png image I'd rather use instead. Is there a way to insert a divider after ...
1
vote
1answer
470 views

Pre-install widgets in WP-Admin

When a user activates the TwentyEleven theme in the admin widgets area, the user already has the Main Sidebar populated with a few standard widgets. Could someone explain or point me in the right ...
1
vote
2answers
933 views

How can I display widget in a Page or Post?

I am trying to display some widgets (Quora & Goodreads) widgets inside Page or Post. How do I do that without displaying it inside Sidebar?
1
vote
1answer
1k views

How to Make a Custom Dashboard Widget to Display Custom Notification from Admin?

I am looking for a way to achieve the following: A group of users 'students' They login to the site Each student can see a 'Custom Dashboard Widget(s)' Each widget will carry a personal message ...
1
vote
1answer
649 views

check for shortcode in post/pages AND widgets AND template files

For the next version of my plugin www.mapsmarker.com I would like to output the plugin´s css and js-files only if the shortcode [mapsmarker ...] is used. For posts/and pages I already found this ...
1
vote
1answer
1k views

Image picker widget

I want to create a custom widget so the user can select 2 images from the media library via a dropdown box and display them in a sidebar. So I need the widget to display 2 drop downs, which each show ...
1
vote
1answer
756 views

How/where is the global variable $wp_registered_widgets filled?

I have a problem of widgets not showing up, trying to investigate why $wp_registered_widgets is empty. Can somebody tell me where it gets filled from the database? How can I find out why the default ...
1
vote
1answer
2k views

Get custom field values into the sidebar/widget?

I haven't seen this done, but I want to return the custom field values outside of the loop in the sidebar. Is there a plugin, or another way to achieve this? thanks!
1
vote
1answer
96 views

Wordpress author details plugin/widget

Does anyone know any wordpress plugin to display the author's profile & image similar to the image attached
1
vote
2answers
338 views

adding multiple sidebars on pages

I am using twentyten theme and I want there to be two sidebars on my page - one on the left and the second on the right. Can any one tell me how to do that?
1
vote
1answer
939 views

How do I create a drop down menu in a widget?

How do I create a simple dropdown menu with 3 options in a widget? I'm using $instance to do it. How would it look in a barebones widget?
1
vote
1answer
672 views

AJAX Contact Form Issue

I created a contact form for my sidebar that is working perfectly in Chrome but not in IE or FF. I've been staring at it for hours and can't find out what I did wrong. I'm not getting any errors ...
1
vote
3answers
424 views

Including PHP files doesn't work outside of Localhost

I have a bunch of widgets that I load from php files, like so: I added a PHP CODE widget and inside wrote: <?php include '/wp-content/themes/myTheme/parts/block1.php'; ?> This worked well on ...
1
vote
1answer
233 views

How to remove Broken Link Checker widget from admin menu

I'm trying to clean up the Admin Dashboard widgets so that only the administrator level users can see the various meta boxes, but no matter what i've tried the Broken Link Checker widget will not go ...