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

learn more… | top users | synonyms (1)

1
vote
1answer
116 views

How i can widget ID get after drag for wordpress with jquery?

I create custom widget with select option image but first time selected option image are not showing after saving this function work perfectly,I need this function only load after Drag in sidebar ...
1
vote
1answer
54 views

Why does my widget break other widgets?

So this widget i created is killing all other widgets registered in the same sidebar. Meaning, nothing renders after this widget does. No other widget markup makes it to the DOM. After hours of hair ...
1
vote
1answer
391 views

Adding WordPress colorpicker in widget settings

I want to add the WordPress default colorpicker in widget settings form. Here's what I'm trying: In my functions.php, I have this: function widgets_scripts( $hook ) { if ( 'widgets.php' != $hook ...
1
vote
1answer
103 views

Restrict access to specific widget field based on user role

I'm looking for a way to restrict the ability to drag certain widgets to specific widget areas in the widget editor. For example, I would like to restrict the widget field 'ads' to only be available ...
1
vote
0answers
190 views

Edit and make class-wc-widget-featured-products.php update-proof

Within the class-wc-widget-featured-products.php file I need to Remove this on Line 101: <?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo ...
1
vote
1answer
115 views

Dashboard Widget Form

I created a Dashboard widget to send push notifications to an app, but the way I have it coded, whenever I make changes in the Plugin Editor and press Update File, the code gets ran and I get a blank ...
1
vote
0answers
109 views

How to update the widget form when the image is selected?

I have created a custom widget. There are 2 things that I can't do: I need to open the new media uploader window when the button "Select The Image" is clicked. When the image is selected from the ...
1
vote
1answer
299 views

Using add_filter() in Widgets

Just have a query reference the add_filter() function. Can you use this function inside a WordPress widget class. Example I have a widget with dynamic created code that I want to pass to another ...
1
vote
0answers
57 views

Issue understanding and using WordPress filters and actions

I have a custom WordPress plugin that I have developed. The plugin is a widget bundle containing a bunch of custom widgets. The scenerio The plugin allows for custom css styles through creating a ...
1
vote
1answer
709 views

Display Widgets Horizontally in Area [closed]

I am building a custom bootstrap 3 theme. I have created a new widget area for my header and am trying to get the widgets there to display horizontally, in line. I've looked up several tutorials, but ...
1
vote
2answers
2k views

HowTo: Add Class to Sidebar Widget List-Items

The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure: <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> ...
1
vote
0answers
67 views

Custom taxonomy widget in admin area

I have a custom taxonomy set up on a custom post type and the box it uses is the same as categories, except I wanted to make it easily searchable using a filter script and then also allow the user to ...
1
vote
2answers
55 views

How can I inject html after the [x]th widget inside a Sidebar? [duplicate]

I can't provide you with any code since I not really know where to start. I like to add some programmatically created widgets (or just html) after the 1st Widget inside my sidebar. Right now I have ...
1
vote
1answer
473 views

How to “pair” two widgets side by side in one sidebar

Currently I use the Pinboard theme with 2 sidebars. In each sidebar I place one kind of widget several times. The point is that 2 widgets of a row (1 of each sidebar) belong together regarding the ...
1
vote
1answer
61 views

Ajaxing function in widget class

I want to ajax function declared in function Widget in widget Class ,it have arguments belong to the widget i try this code add_action('wp_ajax_my_func', 'my_func'); ...
1
vote
1answer
636 views

Ajax load more button in Recent posts widget

I create Recent posts widget and i trying to create load more button for it to get more Recent posts links by ajax ,is there any tutorial for how to make it?
1
vote
2answers
568 views

Conditional tag in Widget Logic for checking if top level page or if subpage

I'm using the Widget Logic plugin to show widgets on certain pages using Wordpress Conditional Tags (or any general PHP code). What I would like to do is only show a widget on child pages, not top ...
1
vote
1answer
88 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
108 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
145 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
30 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
518 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
1answer
698 views

How to create a 'single' category widget for woocommerce plugin [closed]

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
397 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
276 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
287 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
31 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
27 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
137 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
64 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
102 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
167 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
201 views

Widgetize Buddypress Activity Plus plugin? [closed]

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
72 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
124 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
353 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
108 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
213 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
168 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
387 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
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
349 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
499 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
277 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 ...