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

learn more… | top users | synonyms (1)

1
vote
1answer
87 views

How do i place same widgets multiple time by default on theme activation?

I am creating a portfolio theme and want to place some widgets on sidebar by default on theme activation. I did it but the problem is that, I want to place Text widget two times at the same sidebar ...
1
vote
1answer
252 views

How do I rebind event after widget save

I am writing a widget who's form elements have a click event attached to. I bind it using jQuery. However, after clicking save, the bindings gets lost. That is, clicking those elements doesn't ...
1
vote
1answer
107 views

RSS dashboard widget not showing visuals

I am using a RSS feeds widget on my dashboard as shown in this Q&A. Problem is feeds doesn't show up any visual like images or videos. I verified this by looking raw feeds which I used. Here is a ...
1
vote
2answers
137 views

How to add custom widget above admin_footer

What I am trying to accomplish is placing custom widget on an admin page (edit.php). I tried using these two functions: Places custom html right below < body > (above all page content) ...
1
vote
0answers
29 views

Adding custom menu widget to sidebar programatically [duplicate]

I am trying to add custom menu widget to the sidebar. I am not working on wordpress directly, but I am using an xml-rpc calls to manage worpdress site (it is possible via ...
1
vote
1answer
450 views

Add tinymce to widget textareas

I've got several custom widgets which are extended from WP_widget. Many of these have textarea fields. I'd like to be able to apply a special css class to certain of these textareas in order to ...
1
vote
0answers
672 views

How to create a 'single' category widget for woocommerce plugin

Woocommerce out of the box provides many widgets, however the category widget for providing a product search, groups ALL the categories into one widget. I want a widget for one category, i.e. 'shop ...
1
vote
1answer
381 views

remove post and categories/tags count from right now dashboard widget

I know it is easily possible to add a post-type count for a custom post type to the right now dashboard widget. However I wonder if it is also possible to remove stuff from this widget. E.g. I ...
1
vote
1answer
110 views

How to create a dashboard widget for one user

I will start by warning you that my programming skill is limited. I need to create a dashboard widget that will display in the WP dashboard for the users with the user_id=21. So far I have tried the ...
1
vote
2answers
250 views

Add description to custom text widget and display the 5 recent post titles

I just started coding and working as an intern for a company. My boss asked me to create a custom text widget for practice in making word press widgets. The problem I am running into is I have no idea ...
1
vote
1answer
273 views

How the widget can be run by shortcode

I have my own widget, that uses WP_Widget class, and executes its code inside function in this class. Is there any ways to run this widget using shortcode inside post? This is how my widget ...
1
vote
0answers
29 views

How to hook into unregistering a widget instance?

I would like to hook into a widget instance after it is removed from a sidebar panel on the Appearances -> Widgets admin page. So if the instance was an active widget and then removed, I would like ...
1
vote
0answers
26 views

Theme development: Pre-activated widgets [duplicate]

Possible Duplicate: Programmatically add widgets to sidebars Is it possible to develop a theme that has certain widgets automatically activated when the theme is activated? For example: ...
1
vote
1answer
130 views

Simple widget causing whitescreen

This widget code is causing my WP site to white screen. I've re-factored the code about 5 times trying to solve it, but no luck. <?php class latest_mag_issue_widget extends WP_Widget { ...
1
vote
0answers
17 views

Change Widgets Order In Plugin - Get Array Of Sidebar Widgets [duplicate]

Possible Duplicate: Programmatically add widgets to sidebars i create front-site drag and drop layout manager. I need to change widget order, when user drag widget A over widget B, but how ...
1
vote
1answer
63 views

Want to be able to sign up subscribers as authors

I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
1
vote
0answers
99 views

Problem getting current post tags to show in a widget

I have tried tons of examples and suggestion on this topic but I can not get them to work. What I am trying to do is display the tags associated with the current post in a widget. I have built the ...
1
vote
0answers
165 views

Save Multiply Checkboxes in a Widget

Trying to save multiply checkboxes in a widget, but no luck. Here is my code: function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = ...
1
vote
0answers
180 views

Widgetize Buddypress Activity Plus plugin?

Is there anyway to widgetize the Activity Plus plugin so I can display the post form in a widget area on my Genesis News child theme front page? I'm using the BP Sitewide Activity Widget to display ...
1
vote
0answers
71 views

Remove […] from RSS feed?

I would like to remove the [...] from the RSS feed widget. I have tried adding the following to functions: function replace_ellipsis($text) { $return = str_replace('[...]', '-', $text); return ...
1
vote
0answers
31 views

Dynamic sidebar no longer functioning [closed]

I have 3 related websites in english, dutch and italian : www.gynsurgery.org, www.gynsurgery.be and www.mondoginecologico.it about 4 months ago I found the theme of the italian site changed to twenty ...
1
vote
1answer
121 views

How do I create a widget to embed the code for a sign up form, so that the sign up form appears on every page?

I'm going to follow the instructions here: http://kb.mailchimp.com/article/how-can-i-add-my-signup-form-on-my-website to create a sign up form on my website. I think I need to embed the code that I ...
1
vote
2answers
343 views

Add a banner to the Dashboard

Is there a way to add a banner to the WP dashboard? I don't mean in a custom widget or anything, just a simple image banner.
1
vote
1answer
105 views

How to call widget by widget's id?

Is it possible to call widgets using it's id? for example I have a sidebar. In this sidebar I put meta widget and tag cloud widget. I have got their id's ($widgets_list): 'meta-2' and 'tag_cloud-2'. ...
1
vote
1answer
210 views

How do I make the category sidebar widget (stock) display the total # of posts including those in subcategories?

Thanks for taking a look at this for me. You can see the current behavior at http://dev.citylightphilly.com/blog/ -- Here is my specific problem. We are using a category structure like this: Events ...
1
vote
1answer
126 views

Char limit on custom blog-post form? [closed]

I want to setup a simple custom form for users to post, which will automatically: Subscribe user to updates (i.e. moderation approved, comment posted) Enable DISQUS xor IntenseDebate comments ...
1
vote
1answer
156 views

Trying to create a table/list of my EventBrite course listings [closed]

I have an ever evolving list of courses on EventBrite. I would like to display them in two ways on my website: - On this page: ...
1
vote
1answer
1k views

Tabs and Category Widget

I need some help with tabs in Wordpress. I tried several tab plugins for Wordpress, but none did what I wont. I tried Quick tabs, Hybrid tabs and SidebarTabs. I want sidebar to be like this: ...
1
vote
1answer
361 views

If has $title in widgets

I'm writing a widget to display 125 x 125 pixel ads. There are 6 spaces for the ads and currently all works. However, I would to add some conditional logic so that if nothing is entered in the ...
1
vote
1answer
512 views

Using tabs in admin widgets [closed]

Update: I should point out that I tested the method below on Plugin/theme options page and it worked perfectly. In-fact I was also able to include the jQuery cookie Plugin to preserve the current tab ...
1
vote
1answer
124 views

How to overload the update() of existings widgets?

Problem: I couldn't overload the update() method of an existing widget. The widget method and the form method work fine but I can't update the value of the new options defined in the form method. ...
1
vote
1answer
334 views

Displaying info in a sidebar

Hi I run a site gaming review site www.co-opreviews.com. I'm trying to display info about the games in a sidebar on the right hand side of the page. (You can view a mockup of the sidebar here: ...
1
vote
2answers
2k views

the_widget() and widget's ID

Let's assume I have a widget that displays only its name: <p> <?php echo $args['widget_id'] ?> </p> So when I drag & drop my widget to any sidebar it shows: ...
1
vote
1answer
496 views

Widget Javascript code (ajax)

I have a widget like this: class test_widget extends WP_Widget{ function test_widget(){ $widget_ops = array('description' => 'test widget'); $this->WP_Widget(false, 'Test', ...
1
vote
1answer
269 views

How do I use wp_editor() in widget form?

I'm trying to use the built-in Rich-text (wp_editor()) editor in Wordpress for my widget, but I can't seem to find any simple way to use it.. I know you can use it, as Black Studio TinyMCE can do ...
1
vote
2answers
104 views

How do you Permanently Delete Sidebars

I'm developing a custom theme and I added some widgetized sidebars like so: register_sidebars(2, array('name'=>'Foobar %d')); I then recreated them so that I could give them semantic names. Like ...
1
vote
2answers
888 views

How do i manually place a widget code

is there a way that i can place a certain widget any where on the site. For example: I'm using the text widget in my sidebar, for the title i put youtube, and i placed the youtube embed code in it. ...
0
votes
4answers
1k views

Programmatically Add Font-Awesome Icons to Category Widget

I use the Categories widget on my sidebar(s) and I would like to display a Font Awesome icon next to each category listed in the widget. The icon would be the same for all categories, for now, but I ...
0
votes
3answers
3k views

How to add multiple copies of a widget from “available widgets”

I've found a widget that I need to add to more than one sidebar widget area. However, apparently its been coded so that once you drag it from "available widgets" over to a sidebar widget, it ...
0
votes
6answers
1k views

How to reorder and display a feed to be chronological?

I have a feed from an events calendar that once put in the WordPress RSS widget displays the feed items in reverse chronological order. So the events that are farthest in the future display first, and ...
0
votes
2answers
3k views

How to position custom dashboard widgets on side column

My Question: Is it possible to add custom dashboard widgets in the right hand column instead of only on the left hands side? I use wp_add_dashboard_plugin( $widget_id, $widget_name, $callback, ...
0
votes
2answers
112 views

Widgets in the loop if active

I'm trying to put a widget as "first post" if it's active.. and let the posts continue after that.. It works, but the first post disappears and the second post becomes the first in line after the ...
0
votes
1answer
108 views

Why is my custom widget breaking another one?

The first plugin is somehow breaking the second one (the content of the second one doesn't show up at all): plugins/featured-images.php: <?php /* Plugin Name: Featured Jobs Plugin URI: [Enter ...
0
votes
1answer
293 views

Override WordPress Widget CSS Classes?

I'm attempting to style lists in the sidebar (you know, <ul><li>) and I'm curious how to also make widgets adopt this class. Each widget seems to have its own class assigned to it by ...
0
votes
2answers
610 views

Hide certain widgets from specific user roles in admin

I'm looking for a way to hide certain widgets from specific user types in the admin, Appearance > Widgets page? For instance, admins can see all widgets, but authors can only see a select few? I ...
0
votes
3answers
308 views

Grabbing how many posts by month for a dashboard widget

I am trying to develop a dashboard widget that counts posts or post types by month. I am really not sure how to go about doing this. I know how to create a dashboard widget and all that with post ...
0
votes
2answers
3k views

How to add the widgets manually to the sidebar?

How can I add the widget manually in the code ?
0
votes
4answers
450 views

Are widgets meant to be used outside of sidebars?

Are widgets meant to be used outside of sidebars? My case: I have this html block which I want to use every time I display a post with category of "Story". I was going to make a widget to reduce ...
0
votes
3answers
774 views

Style every second widget?

I need to apply a certain style to every second widget in my sidebar, and I'm reluctant to use :nth-child due to cross-browser compatibility issues. Is there a bit of PHP that will allow me to apply a ...
0
votes
1answer
1k views

Help me out with this Undefined index ?

I'm working on flickr Wp-widget. Here is code to fetch flickr pics. class imperia_flickr extends WP_Widget { function imperia_flickr() { $widget_ops = array('description' => 'This ...