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

learn more… | top users | synonyms (2)

1
vote
1answer
444 views

Dashboard widget custom positioning?

I cannot figure out how to arrange my custom widgets one left and one right. I'm using this code to create custom widgets: //Add my comments. Shows user his last 5 comments function ...
1
vote
1answer
1k views

Latest/Recent posts widget title link

I have been struggling with this for a few hours now... I want to add a link to my recent posts widget title. I have tried a number of options given in forums but nothing seems to work. Tried ...
1
vote
1answer
439 views

Image Uploader API

I want to create a widget for my theme that will let me upload an image to WP and crop it to a certain size. Can anyone point me to the codex page or a tutorial on how to a bare bone implementation of ...
1
vote
1answer
322 views

Custom User Field in Dashboard Widget

I checked justin tadlocks custom profile field tutorial and wanted to add the field in the custom dashboard widget but it seems it's not working. I want to show all the user information in this ...
1
vote
2answers
2k views

Show posts from one category with thumbnail and description on latest

Is there a widget for WordPress to show posts from one category with a thumbnail and description for latest post? WIDGET LIKE: Top news section of WWW.GOAL.com.
1
vote
1answer
109 views

Random image from tag/custom type on sidebar

How would I pull a single random image from custom post type "athletes" and the custom image field "athletethumbnail" to be displayed in my sidebar? (I have PHP enabled for my text widget on sidebar.) ...
1
vote
1answer
276 views

styling back end widget form and enabling multi widget feature

I am reading this tutorial from the end of 2008 on how to make widget and so far everything works fine except that I have few questions that I couldn't find answers there. I need to style back end ...
1
vote
4answers
580 views

How to show different widgets on different pages in a user friendly way

I'm looking for a plugin to let users choose which widgets appear on individual pages. There's some solutions out there, none of which that I've found are truly easy for a non-technical user. I've ...
1
vote
1answer
238 views

Wrap the widget content with a div and get the widget title outside? [closed]

In this subject you can wrap a widget with the title outside but if you don't want a title, a <div> will not be closed, and the template is broken. So I would like to do this in jQuery instead ...
1
vote
1answer
156 views

Big side banners

I would like to have a big header side advertisements like this: What is the best way to achieve that?
1
vote
1answer
730 views

Rotate Widgets or Content Blocks every x sec/min

Is there a way to rotate widgets or text blocks with a Flash banner? I had a widget loading a Flash Video loaded by wordTube Flash and YouTube player. The client wanted to rotate this video together ...
1
vote
2answers
2k views

Widget modifications in a child theme

Can I modify widgets in a child theme? When I change the footer, I don't need extra steps -- it just works. What about widgets? Example: A widget of a theme I am using makes use of google maps. I'd ...
1
vote
1answer
398 views

Multi language site [closed]

I found that two most popular plugins for multi language sites are WMPL and qTranslate. First one is commercial, so this is not option, and second doesn't have ability to translate widgets in ...
1
vote
2answers
56 views

Should use widgets in this case?

We develop a new WordPress site with a new theme developed exclusively for this site. Some widgets of the same type (such as two "Bookmarks" widgets) should be styled differently (that is have ...
1
vote
2answers
303 views

How can I disable widget from being visible on some pages?

I have two widgets in my sidebar, a jQuery vertical menu and an image handler. I need to disable the jQuery widget on my contact page (or hide it or something like this), so that it wont be shown. ...
1
vote
2answers
466 views

Register widget only page is a singular of custom post type

I've made a custom post type, with a few accompanying widgets, and I was wondering if it is possible to show (some of) these widgets only if you're on a specific page. Currently I've got function ...
1
vote
1answer
990 views

Widget: Custom Post Type Post Listing Dropdown on Admin Side

Widget: I'm making a custom widget with the following functionality on the admin side. 3 text fields 2 dropdown menus to select posts by title (both from a single custom post type) Right now, ...
1
vote
1answer
327 views

How do you categorize pages?

I am an experienced Drupal developer who is just getting stuck into Wordpress. For a selected number of pages on a new wordpress build, I need to add them into a category, then add this category ...
1
vote
2answers
1k views

modify a output of a widget

I'm to implement a theme in wordpress. Is possible modify a output (html) of widget in wordpress? For example, the "recent comments widget"?
1
vote
1answer
224 views

Add pagination to listing plugin

I am trying to figure out on how to add pagination to your listing. Think you could help me out? I have added the read more button and manage to customise the listing styles. What's left is the ...
1
vote
1answer
38 views

widgetlogic and permalinks

I'm trying to use widgetlogic to conditionally display menus on certain pages. Each menu uses a tag like is_page(array("Page Name", "Page Name 2" ...)), and works perfectly until I try to change ...
1
vote
1answer
842 views

How to rename wordpress Widget

I want to rename "Widget" to something else Like "Block" or something else. please help me. EDIT Per the user's comment below, she wants to change class="widget" to class="block" (or any ...
1
vote
3answers
270 views

Disable dashboard drag&drop

I need to disable drag&drop functionality for dashboard widgets. This should be realized with jquery, just as it is for the dashboard_browser_nag. I'm no jquery expert - so can anybody tell me ...
1
vote
1answer
518 views

How to display more than one instance for a widget?

I'm using a plugin called Recent category post widget. Unfortunately the plugin developer is no longer offering support. The way this plugin is coded, displays only one instance of the widget (meaning ...
1
vote
2answers
2k views

How to display an RSS feed widget inside a page?

I have an RSS feed (link) that I would like to display as a widget inside one of my posts. The wordpress RSS widget already does that on the sidebar, is there some solution to have it in the post? ...
1
vote
1answer
74 views

allow user to style widget backgound per widget

Is there a way to allow a user to style a widgets backgound per widget? Lets say there are 4 widgets in the sidebar, i want the user to be able to style the first 2 with a blue background, the second ...
1
vote
1answer
839 views

Widget textarea input gets formatted

I've built a small widget for my website It has a couple of inputs, and a <textarea> among others. Whenever someone inputs to the textarea it adds a tab at the begining and changes every ' to ...
1
vote
2answers
76 views

I'm trying to find a basic plugin for displaying images in a widget [closed]

I've tried and installed loads of free WP plugins that can't do what I would like them to do. I write a fictional news blog and I'd like to be able to display about a dozen or so adverts that I've ...
1
vote
3answers
305 views

Custom html widget with a Joomla-style assigment

I was unable to find a custom html widget with Joomla style assignment. Like you create a module (widget), define some HTML and assign it to certain menu items (or set it to show everywhere except the ...
1
vote
1answer
634 views

widget dropdown menu code

I'm trying to put in a simple dropdown menu in my widget. I copied one out of a previous widget and trying to substitute my own values into it. The submenu shows, but when I click save, it saves ...
1
vote
1answer
131 views

how to put functions inside of widgets

I'm trying to put my own function in a widget but it doesn't run. I want to use it everywhere within the widget. If I could see an example,that'd be great.
1
vote
1answer
235 views

Custom random quote widget breaks when used in multiple sidebars

I've created a custom widget and placed it in functions.php. You can see the widget here: http://pastebin.com/3uWpeaFx (I've also created a similar widget that grabs a random image; it's included ...
1
vote
1answer
2k views

Widgets with groups / sub widgets? Widget in a widget?

I tried to find anything about adding a widget within a widget area. That widget should be a widget group / sub widget area. I've found a plugin that does this: ...
1
vote
2answers
537 views

Hooking in to replace the Sidebar/Widget areas

The Goal: To replace the sidebar on all sites across my network with content loaded from a plugin, across all themes. I need a way of over-riding the sidebar/main widget area on all sites across my ...
1
vote
1answer
127 views

Show widget differently depending on if it's in the sidebar or footer

I've made a custom widget which shows thumbs of my latest videos. These thumbs are set to be 300px wide, which is the same width of my sidebar. My problem is that i also want to be able to use it in ...
1
vote
2answers
3k 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
2answers
136 views

Adding a Widget : what to put in plugin URL

I am signing up to add a widget to wordpress.org here: http://wordpress.org/extend/plugins/add/ What do I put for the field "Plugin URL"? Would that URL be the svn repository I am currently hosting ...
1
vote
2answers
589 views

Get posts after today (upcoming events)

I'm using PHP Exec to build a widget to show a list of upcoming events: <?php function filter_whene($whene = '') { $whene .= " AND post_date >= '" . date('Y-m-d') . "' "; return $whene; } ...
1
vote
2answers
492 views

Changing widget options via the functions.php when there are no hooks

The problem: to change a widget's options with a custom function in functions.php, when there are no useful hooks, and where there are multiple occurrences of the same widget (multiwidget). This ...
1
vote
3answers
372 views

How can I assign widgets from WP to appear in bbpress?

The usual set-up: www.domain.com - wordpress installation with sidebars and widgets; www.domain.com/forum - bbpress. BBpress is integrated via bbpress-integration plugin. The question is - how can I ...
1
vote
2answers
468 views

Dividing widgets in sidebar?

I'm having a custom sidebar called Footer. I'm displaying this sidebar using this code: <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer') ) : ?> (maybe I should ...
1
vote
1answer
80 views

Do widget options need to be escaped widget()?

I was wondering if you really need to escape user submitted data (widget option fields) within the widget() and form() functions (from the widget class) ? I don't see a reason to do this, if the data ...
1
vote
1answer
503 views

How to pass data from page to widget functions?

I need help,need to pass data from page,to widget function,I need to pass author id to widget,any idea? Tnx
1
vote
2answers
605 views

get_option returns undesired blank instance of a widget

I am presently trying to call the fields of a custom widget using get_option and loop through the array created from the get_option() call. The issue is that it is outputting a blank one at the end, ...
1
vote
1answer
859 views

Paging in a sidebar mini loop

I switched to another theme and decided to make a widget of some default code I had in there which shows my delicious posts, twitter posts, su posts and youtube vids in a custom loop (excluding these ...
1
vote
2answers
2k views

Adding a rich text editor to a widget - specifically CKEditor

I am trying to add a rich text editor to a widget and am using CKEditor ( http://ckeditor.com/download ) with a simple toolbar. Everything works fine until I try to save. When clicking on "save" the ...
1
vote
1answer
1k views

Help with custom widget options! (saving checkbox option)

I created a custom Flickr Widget for Wordpress and successfully set up an options form for users to enter their Flickr information, but I cannot get the checkbox in the form to save whether or not it ...
1
vote
1answer
10 views

Widget - link to page rather than absolute url

When I add a link in a Widget, I get the standard Insert/edit link dialog with a Search field. If I enter the Page in the Search field and then link to this page using the "Or link to existing ...
1
vote
0answers
43 views

Post Count for Categories, however not to calculate a total

Normally this is how the category widget works. Fruits (15) - Apples (7) - Oranges (3) - Grapes (5) Apples, Oranges and Grapes contains posts, however nothing in Fruits. Lets assume that Fruits ...
1
vote
0answers
43 views

Fire on widgets_init only on dashboard

I have an interesting issue. I need to launch an action on widgets_init, but ONLY on the WordPress Dashboard. So I can't use dashboard related hooks, because they fire too late; it has to be on ...