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

learn more… | top users | synonyms (2)

1
vote
3answers
264 views

Displaying a widget in sidebar only when no other widgets rendered?

I am working on a custom theme, basically migrating a current sites look and feel into WordPress. Most of everything is based on Pages, and all of these pages should have a left sidebar. Of those ...
1
vote
2answers
225 views

Style the archives/category sidebar widget via theme

I would like to change the appearance of the categories and archives widgets in the sidebar such that each category/month alternates the row color. The only way I know how to accomplish this requires ...
1
vote
1answer
138 views

Custom page sidebar using Template dropdown box

i am wondering how i go about making a Template for some of my pages to use a different sidebar? I have created the widget like this: register_sidebar(array( 'id' => 'ourPat-sidebar', ...
1
vote
2answers
2k views

Is It Possible to Restore Accidentally Deleted Widgets?

I accidentally deleted the widgets without dragging it to the inactive widgets section. I have a backup of all the files and the database but i have changed many things on the site other than the ...
1
vote
2answers
202 views

How to check if searchform.php is being included as widget?

I'd like to put something like this in searchform.php: <?php if($widget){ ?> //load serach form for sidebar... <?php }else{ ?> //load different search form for page content (404 ...
1
vote
2answers
3k views

Wordpress Custom Menu Widget Style

I am wondering if anyone knows the best method for splitting 1 custom menu widget (located in my sites footer) in to 2 columns. There are a total of 8 links, so I would like it to be split in to 2 ...
1
vote
1answer
177 views

I want to display custom text widgets for each post in the sidebar?

Ideally I am looking for two text boxes added to the 'Add new post' admin page, and the data from those two boxes be displayed in the sidebar when viewing the post page. So the sidebar displays the ...
1
vote
1answer
290 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
959 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
394 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
304 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
1k views

How do I register a stylesheet inside a WordPress widget?

I'm developing a WordPress widget following Dave Clements tutorial. It works well. Now I want to add some styles to it. I want the styles to be in an extra css file which will be loaded during ...
1
vote
1answer
101 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
216 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
491 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
226 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
134 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
627 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
387 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
54 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
282 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
417 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
830 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
279 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
975 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
211 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
679 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
243 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
474 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
1k 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
71 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
736 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
73 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
294 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
586 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
84 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
222 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
1k 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
434 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
124 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
134 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
556 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
473 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
367 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
409 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
77 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
447 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