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

learn more… | top users | synonyms (2)

0
votes
1answer
521 views

How to automate setup of theme, pages, widgets, etc for a new site in multi-site?

I have a large MultiSite network, and each page is designed a bit differently. I'm looking to write some custom code to automate the setup of a new blog as much as I can. Things I'm looking to do ...
0
votes
1answer
268 views

Removing widget without using unregister_widget

I want to remove some plugin widget showing from wp-admin/widgets.php but i dont want to use unregister_widget because i am using this widget automatically from php files.. Basically i dont want ...
0
votes
1answer
254 views

Recent Posts widget missing current_menu_item class

Unlike the (WP standard) Custom Menu widget, the Recent Posts widget does not add the current_menu_item class when a post is selected (being displayed). This seems like a major oversight, am I ...
0
votes
1answer
46 views

How to place my g+ or fb plugin at the bottom of post or page?

I recently installed the google+ and facebook widget plugins to my pages and I do not like it's current position. I'm not sure where to begin looking.. Thanks.
0
votes
2answers
221 views

How to use variables from widgets in other pages?

I have a widget where I set some custom url's like register or login. I want to use those variables declared in a widget outside of the widget, in other pages (page templates). How can I save or use, ...
0
votes
1answer
164 views

Text Widget to Show database fields based on post

I am wondering whether this is possible: I would like a widget which displays fields taken from a database table I have created. Table contains information about the location of the post. ...
0
votes
1answer
118 views

Catagorized hierarchy menu for PAGES!

Yes, I am a noob at all this so please excuse my ignorance! So, for the past couple of days, I've been searching for a drop down page menu widget, but I would like to have the pages separated into ...
0
votes
1answer
1k views

Add a widget to a static front page

I'm using a premium theme, which I purchased and would like to add a social widget to the static front page. I've made a static page with a image slider my home page. An example of the page can be ...
0
votes
1answer
39 views

Last Update time in widget

I have a widget which can be updated every time with few values and admin update it on daily basis now how to get its last update time.
0
votes
1answer
678 views

How to style the RSS wordpress?

I am using the default rss feed widget but want to style it. My question is -where to add my piece of code to style the default wordpress rss widget?
0
votes
1answer
520 views

Custom field outside the loop and inside an array

I am trying to use a custom field inside a widget so it's therefore outside the loop. Taking it a step further, the theme I have is using an array to generate listings which makes it hard for me to ...
0
votes
1answer
141 views

How to use multiple instances of Deal or Announcement With Countdown Timer Plugin Widget

I have a widget called the deal or announcement with countdown timer I want to use multiple instances of the widget at the same time; however, the widget does not allow multiple instances. Is there a ...
0
votes
1answer
96 views

Distinguish between different widgets of the same type

I'm playing a little with wordpress widgets and I trying to do something like this: I created a sidebar and a widget to display a slider with latest posts. The jQuery loader is something like this: ...
0
votes
2answers
786 views

Don't display a sidebar widget when on a specific page

I am trying to stop latest blog items from displaying in the blog section of my site. I have used the following code: <?php if ( is_page('blog') ) { ?> <h2>Don't display ...
0
votes
2answers
2k views

How to exclude categories from get_categories() select list inside a widget admin panel

I have a widget that I need to add a category select list to. The end user should be able to select a category and I need to save the category ID with the widget. I've hit a stumbling block in that I ...
0
votes
2answers
893 views

Adding dashboard widgets to show - custom post type stats, information from other plugins

I have a website and i need to be able to edit the dashboard widgets so it shows relevant information to the website. At the moment all that is showing is the right now widget. Inside this widget, i ...
0
votes
1answer
418 views

links to Media Library content in sidebar per page

I have a bunch of PDF files in my Media Library and I want to show the relevant ones on a per-page basis in the sidebar. So on the 'About Cats' page, I want ILoveCats.pdf and cat-food.pdf from the ...
0
votes
1answer
1k views

Truncate custom post type content

I am customizing a widget used for displaying testimonials. The widget is working fine, except it shows all content and i want to limit the text/characters so the footer of the website looks balance. ...
0
votes
1answer
232 views

How to customize wordpress sidebar widget

This is how i registered my sidebar: register_sidebar(array( 'name' => 'Post Sidebar', 'before_widget' => '<div class="widgetdiv"><div id="%1$s" class="widget ...
0
votes
1answer
295 views

Upgraded to 3.3, My Widgets Disappeared

I upgraded to 3.3 an my widgets went bye-bye. Here's the code I'm using... anybody else having this problem? This code worked perfectly fine for me before the upgrade. <!-- Enable Widgets ...
0
votes
1answer
167 views

Why is registering a sidebar for each page causing my sidebars to reset?

I have the following code in my functions.php if ( function_exists('register_sidebars') ){ $pages=get_pages(); foreach($pages as $page){ ...
0
votes
1answer
210 views

WP 3.3 RC1 new switch_theme() method foobars sidebars

I've been testing the new 3.3 RC1 code against my plugin and I've found a significant difference in the switch_theme() function that foobars my ability to preset widgets dynamically. The problem ...
0
votes
1answer
36 views

Last x Posted Categories?

Is there a widget available that will list the latest x categories according to posting date, essentially providing a list of the most recently active topics?
0
votes
2answers
922 views

Setting text widget to one page only

I've tried several methods of trying to add my text widget to only one page (my about page) and everything fails! Currently I have a plugin that lets you choose with a text box which page you want the ...
0
votes
2answers
171 views

How to add captcha to publish widget

I want to add a captcha challenge to the "publish post" widget in "add new post" to prevent spam posts. This is because my site is open to registrations and posting. Could someone please suggest how ...
0
votes
1answer
56 views

Widget internal hooks and functions

I am working on my 1st plugin, of some ideas to re-do the interface to how widget's are manage d and organized. Anyhow. I am struggling to get this information, either that or understand it. Create ...
0
votes
2answers
98 views

How to Catch Last Widget box From Same Widget Area?

is there any Way to Catch Last widget box or div from same widget area?? i mean i have 4 widgets in footer widget area but due to design issue my 3rd widget box style+width is different.so i want to ...
0
votes
1answer
454 views

Jquery checkbox -show posts with checked tags

Using jquery, How do I show a checkbox with the list of tags in the sidebar, and only show posts of the checked tag? I cant seem to find this anywhere
0
votes
1answer
685 views

How to show avatar of current logged in user in a widget

I have a php widget, and I need to show the avatar of the current logged in user, and I'm calling this code: <?php echo get_avatar(); ?> But its only outputting the default avatar. Is there a ...
0
votes
2answers
234 views

Modify pages widget and make a plugin?

I would like to make a plug-in that adds a widget. I would like it to be based on the current pages widget but add the ability to select either include OR exclude by drop down or checkbox then list ...
0
votes
2answers
676 views

How to exclude categories from a sidebar with active widgets in it?

Is there a way to exclude certain categories from a widgetised sidebar? I've got categories that are associated with custom post types and ones associated with my blog - I don't want to display the ...
0
votes
1answer
60 views

Got a problem with a widget

i am trying to build a widget that would display a list of top authors on sidebar.. This is not my first widget but it is my second one so my apologies if i am way off.. The problem is that when i ...
0
votes
1answer
320 views

Wordpress category filters as subcategories

I want to develop a course database available in certain countries. Name of country will be set as top most category name. Then it will be sub-categorized alphabetically, subject, degree level and ...
0
votes
2answers
83 views

Widget control - putting a slideshow in the widget area

I am trying to put a slideshow in the widget area of my wordress theme... do you know of anyway to do this instead of html in the widget area? Thanks Kevin
0
votes
2answers
249 views

Register new widget

I have a widgetized area and I am trying to add a new widget that can be added to my widget area, I need the code below to be the widget output <ul> <?php $args = array( 'taxonomy' => ...
0
votes
1answer
301 views

activate custom sidebar widgets

Hey guys I'm trying to activate a sidebar for wp widgets. So my HTML looks like this: <aside id="leftSidebar"> <section> <h3></h3> <div ...
0
votes
1answer
93 views

Editing Help Section

I was trying to find the contextual help section for all the admin pages so I could add some additional text. The main pages I need to hit are the "Pages" page and the "Widgets" page but I'm not sure ...
0
votes
2answers
211 views

Changing the order of widgets according to current page?

I would like to change the order of the widgets, for instance: Front-Page: Recent Posts Recent Comments Single Post: Recent Comments Recent Posts Is it possible to achieve this?
0
votes
1answer
595 views

How do I customize the positioning of Wordpress widgets?

I want to create new sidebars, footers, etc. where I'll be able to move widgets. Can I try just try to edit the main CSS file to accomplish this or is it more complicated?
0
votes
1answer
381 views

Where (what direcory) are the default Wordpress Widget Codes stored?

Of course we all know there are a few widgets ready by default to drag into a sidebar, but where are these stored? I'd like the copy the code of the Categories and modify it slightly to show my ...
0
votes
1answer
317 views

How to remove date in Recent Post widget?

I am stuck with this. I open the file default_widget.php inside wp-icludes folder, i want to remove the date displayed by the default recent post widget. I cannot find it! Pls help!!
0
votes
1answer
280 views

Limit archive widget results

Is there a way to limit the amount of months shown in the Archive widget? I don't want to use a drop-down list (I can manually add a drop down in my footer so people can get the full archive). I'm ...
0
votes
1answer
397 views

wp_footer hook running twice

I have created a widget that have to run some code using the wp_footer hook as well. But if you extend the WP_Widget, the wp_footer runs twice! Has someone already past for the same issue? Here is an ...
0
votes
1answer
875 views

SELECT field options disappear when saving widget

I'm having an interesting problem that I can't seem to solve. While creating a widget, I have created a select field with options that can be chosen on the widget screen. It all works perfectly fine, ...
0
votes
1answer
106 views

changing the style of sidebar

I am just a newbie in wordpress.I want the colour of the sidebar widget will be different in different pages. As the id and class are both same in every pages don't know how to change that.Is there ...
0
votes
2answers
289 views

How can I detemine the parameters needed by the_widget()?

I'm working with an old (now unmaintained) widget, which only allows one instance. Since I want to have a different sidebar on the homepage and I want this widget on both sidebars, I figure I need to ...
0
votes
1answer
512 views

Wordpress widget value not save?

all Now i create a widget plugin, here i have problem the checkbox problem, dont have save the value, then i search form Net, and found the answer, but now i dont have understand the means of (bool). ...
0
votes
1answer
86 views

Wordpress text filed input only inter value?

All Now i am using WordPress, here right now i have a problem How can i valid my text filed input only inter value. Here is my code <p> <label for="<?php echo ...
0
votes
1answer
216 views

What happened to my Inactive Widgets?

I have purchased the DynamiX theme, and I'm trying to use it for the first time. I was looking at the widgets, and I saw some neat customized (Dynamic maybe?) widgets in the Inactive Widgets section. ...
0
votes
1answer
767 views

Add a custom function to widget code

Hopefully, this is an easy question - I'm just a bit confused. I've got a custom widget with the usual structure: class My_Widget extends WP_Widget { function My_Widget() { // widget actual ...