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

learn more… | top users | synonyms (1)

0
votes
1answer
151 views

How to display custom message for (Genesis) featured posts if no posts

I'm using the Genesis Framework, and the custom post types featured post widget (code below). I need to display a custom error message for a particular post type if there are no post present for that ...
0
votes
1answer
178 views

How to add Custom Fields to Settings in Widget Options for all Registered Widgets?

I want to add input box in the custom form when we click for Widget Settings. Really like to have this additional text box in all widgets be Custom Made or the default ones. I'll be needing help in ...
0
votes
1answer
42 views

jquery conflict with widget page

I'm trying to create a widget plugin that uses a jQuery code to show/hide divs in the widget form based on the selected option of a select drop menu. The jQuery code I'm trying to implement is ...
0
votes
1answer
58 views

Show editor widgets only on pages that use a specific template?

I am utilizing the following code to add an additional three Featured Images to homepages in a multisite installation: if (class_exists('MultiPostThumbnails')) { new MultiPostThumbnails( ...
0
votes
1answer
38 views

Widget front-end fails to echo as expected from checkbox

Context: This is my first widget and I am following along with an online tutorial. I am expecting the front-end of the widget to echo some content upon checking a check-box in the back-end form, but ...
0
votes
1answer
36 views

Name Input from widget displays Sidebar name instead of saved data

I wasn't sure how to title this question,so I apologize. Let me first state that I have no experience with this type of code but I really need to this feature for my website, so I appreciate all the ...
0
votes
1answer
232 views

Multiple entries in get_option results? or why is _multiwidget set to 1?

I am developing a wordpress widget, and need to store some user configuration values, that is why I am using wordpress update_option and get_option. I am new to widget development. I have some ...
0
votes
1answer
46 views

Need help using a filter on the default Categories widget

I need to add the "All Categories" item to the default WP categories widget. I can see that there's a filter that I can hook into in the core (line 485 default-widgets.php). ...
0
votes
1answer
23 views

Page full of widgets?

Is it possible to create a page which is just lots of widgets? most WP sites I see the widgets are in the sidebars, but I want a page which is just widgets and nothing else. The theme I'm currently ...
0
votes
1answer
100 views

How do I update the formatting of the Mailchimp Subscribe Widget

Installed the Mailchimp Widget in the sidebar of my website and the formatting for the widget is askew. I need to shorten the length of the "Submit" button. I want to remove the two radio buttons that ...
0
votes
1answer
70 views

How to show a feed that requires user/pass within a sidebar widget?

I'm trying to do something and I don't seem to yield any successful results when searching neither at wordpress.org forums nor here. I would like to extend the standard RSS widget so that I can set ...
0
votes
1answer
37 views

Banner editable from backend

Im trying to create a widget area. Ive added this to the theme. <?php if ( dynamic_sidebar('myWidgetName') ) : else : endif; ?> And then i register the area with function ...
0
votes
1answer
99 views

Count widgets in position and set class

(Please be gentle, I'm transitioning from Joomla development.) I am using Twitter Bootstrap for this client and I would like the "bottom" widget position to work "automatically" for my client as I am ...
0
votes
1answer
137 views

Widget Option is Missing

My Widget Option is missing in the Dashboard area. How can i make that appear? I have downloaded this Blank Theme from Chris Coyiers site. sidebar.php <?php /** * @package WordPress * ...
0
votes
1answer
244 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 ...
0
votes
1answer
168 views

“Widgets” menu doesn't appear

I'm developing a WordPress theme, which works great on my localhost and one of my live servers, but on my other live server the Widgets menu (from Appearance) doesn't appear. And yes, all 3 servers ...
0
votes
1answer
50 views

How to limit characters in Academica featured posts widget?

I'm currently using the featured posts sidebar widget in the Academica wordpress theme. I'd like to know if there's a way to limit the number of characters displayed in the excerpt without resorting ...
0
votes
1answer
80 views

How to use in_category?

There's this "Recent Posts" widget, that should output only posts in category 'News' (ID 26) So I tried this: <?php $t =& peTheme(); ?> <?php $content =& $t->content; ?> ...
0
votes
1answer
61 views

key( $GLOBALS['wp_registered_sidebars'] ) is always showing the same value

I am using this code from another answer add_action( 'dynamic_sidebar', 'wpse_96681_hr' ); function wpse_96681_hr( $widget ) { static $counter = 0; // right sidebar in Twenty Ten. Adjust ...
0
votes
1answer
405 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 ...
0
votes
1answer
58 views

Default calendar widget not showing up

I just started learning how to make custom websites with this (unfortunately) most popular CMS, and I am having a small issue. I widgetized some areas of my website, and some widgets (I tested 3, ...
0
votes
1answer
64 views

Passing $this->get_field_name() to javascript

I've tried doing this one of two ways: In the form method of my Widget class (which extends WP_Widget), I have the following snippet, which sets a global javascript variable: if( $instance ) : ...
0
votes
1answer
70 views

Wordpress Widget - Saving multidimensional arrays into $instance

In my wp widget, $instance has an attribute called order which will the listing order of libraries/services. I'd like to store a multidimensional associative array that will hold the id of each ...
0
votes
1answer
243 views

Decrease white space between sidebar widget title and graphic

I am new to all of this, so sorry if this has been discussed. I am looking for a way to decrease the white space between my sidebar widgets, especially between the titles and then the pic. ie. "my ...
0
votes
1answer
164 views

Calling widget using shortcode

I am using shortcode to call a widget. All is working fine but I want to pass some $instance(parameters) to the_widget. I am using $content to pass paramets to the_widget but I dont see any chnages ...
0
votes
1answer
39 views

How to have more post in a page than in your home page

I am new to the world of WordPress. I own a new site and I'd like my home page to display the latest news and articles (which I accomplished to set in Settings > Reading), but I'd like another page to ...
0
votes
1answer
33 views

How to output built-in widgets with number in range as class?

I'd like to make my theme mobile friendly by turning the widget-containers into touchable buttons, having their contents flying out when hovering. Therefor, I will have to absolutely position the ...
0
votes
1answer
721 views

How to have Multiple Archives Widgets, one archive widget per category (in a different page)?

Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am ...
0
votes
1answer
78 views

Help me tidy up my widget code

I'm a newbie in WordPress and PHP. I created a small widget to embed video's from YouTube or other video hosting. Everything works fine. I know I have messy code, therefore I would appreciate it if ...
0
votes
1answer
52 views

Default widgets assignment - isn't working

The question is regarding, calling the default widgets into the sidebar[s]: So, despite the solution given in THIS THREAD, I tried a different way - Ian Stewart's borrowed solution given HERE. It's ...
0
votes
1answer
14 views

Neaten content — different widget or CSS change?

I want to neaten up the content in a widget. I'm not sure if I should use a different widget, or get a change to the CSS made, or something else... On a largish screen on this site: ...
0
votes
1answer
40 views

Options page for widget

I started developing a plugin which only required a few options. But over time the number of settings grew, and I want to move most of them to a separate page. I've seen quite a few tutorials about ...
0
votes
1answer
208 views

How Do I include/Import a Custom Widget from the Parent theme into My Child Theme?

I'm trying to make a small modification to a custom widget that was included with a clients parent theme. Whenever I remove the parents version of the widget (for testing purposes) the child version ...
0
votes
1answer
29 views

Run an action only when Widget actually instantiated (not just registered)

Suppose you have a widget that depends on a metabox being added to, say, your Posts. An easy way to do this is to simply add the add_meta_boxes action to your Widget's constructor and off you go. When ...
0
votes
1answer
98 views

How to change links in the 3 main categories, on widget category, to a javascript function call

I'd like to know.. How could I change my 3 main categories links, so they call a javascript function? I'm using Snapshot Theme from WooThemes. Here's the current state of the website: ...
0
votes
1answer
109 views

call coupon press advanced search widget anywhere in theme?

I am working on a parent child Coupon Press Wordpress Website. I am able to call it's New Advanced Search Widget in sidebar but I want to call it anywhere in the website like I have created a page ...
0
votes
1answer
60 views

Using a loop to build and update widgets

So I have a widget Im making which allows users to update 4 switches. Each switch has the same fields, name, description, price, amount so I decided to build the widget using a for loop instead of ...
0
votes
1answer
109 views

Tabbed navigation in widget backend

I have just created a widget and i am trying to implement a tabbed navigation in the wp backend but it just seems more difficult than writing all the php code! The categories metabox is an example of ...
0
votes
1answer
156 views

Show or hide custom menu widget in side bar conditionally

I have been trying and searching to accomplish this. I have the "custom menu" widgets "Members Area", "Admin Area" in side bar, assigned menus to them. Fine, they display. I want to show "Admin Area" ...
0
votes
1answer
117 views

Putting a wordpress custom post into a widget

I have just recently created a widget in my Wordpress theme that inserts a widget into the sidebar. Its based upon the text widget. However the html content is hard coded into the widget and it has ...
0
votes
1answer
176 views

Saving widget gets an undefined variable

I am developing a widget for cached feeds. The widget itself works exactly as I want but I noticed that if I were to delete the widget and then add a new one (or simply just add a new one) on the ...
0
votes
1answer
178 views

WAMP to XAMPP WordPress transfer

I want to switch a WordPress site from a wamp localhost to xampp localhost. Using the Tools > Export, I saved the WordPress content to an XML file. I did not create a similar backup of the MySQL ...
0
votes
1answer
87 views

Problem with single posts not showing correct category sidebar

I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on ...
0
votes
1answer
99 views

Wordpress plugin not eching popular posts

I created a plugin in wordpress to show popular posts, but this is not returning the post and number of comments properly. Even I have comments in my post(approved as well, so this is not the case) ...
0
votes
1answer
63 views

Registering multiple copies of a widget

I'd like to be able to register multiple copies of the Quick Search Widget in the code below, so that I can have it multiple sidebars. The code has been taken from a plugin I've downloaded function ...
0
votes
1answer
107 views

Passing widget options to external script

I am trying to pass some widget options to an external script using wp_localize_script. I know how to pass the variables and how to use them within the script, but how do I extract the widget options ...
0
votes
1answer
41 views

How to create a widget on witch a registered user can create a checklist

I have no idea where to start. I want to create a widget. with the following features show a button to create a checklist. Show a list of already created checklists created by the user. Mark ...
0
votes
1answer
44 views

Wordpress Hide Widget If $_Session Is Active?

I was wondering if there is an easy solution to add some php "if" code when my website tries to show the widgets and if it has $_SESSION I set on homepage (based on the source of which they came) not ...
0
votes
1answer
92 views

Trying to output a “Most visited blogs” list in wordpress multisite

Does anyone know how to get a "most visited" list out of Wordpress Multisite? I got alot of bloggers and have been looking for a way to output a top 10/20 list of most visited blogs, but cant find ...
0
votes
1answer
156 views

Author Link in Recent Posts Widget

I want to add author link into the recent post widget. For example if any user post on my web from his LinkedIn ID (which I have allowed) so in Recent Posts where it shows, <time> By: ...