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

learn more… | top users | synonyms (1)

0
votes
2answers
29 views

Can't remove a widget from admin

I've just updated to WP 3.6, and I have also just turned off network mode on a Wordpress website. I cannot remove a widget I created. It is a text widget. I can't remove a search widget either. I ...
0
votes
0answers
64 views

why update function is not called in wp_widget

I am working in wordpress 3.5 and try to create a new widget but I don't know why wordpress api is not call function update in widget class please take a look at my code and please tell me where I did ...
0
votes
0answers
29 views

Jetpack Top Posts writes differently when logged in and logged out

I added a line of code the top-posts.php file in Jetpack, in order to enable a sliding overlay on hover state. This works with the Top Posts widget in Image Grid view. It works perfectly while I am ...
0
votes
0answers
24 views

widgets won't work after changing plugins arguments

I have problems with my custom widgets which are initialized in my templates functions.php. Till the point was working when I had to change couple of arguments in my plugins method from which the ...
0
votes
0answers
15 views

Fetching attachment_link outside loop

First of all I must say I'm not a star with PHP. I have registered here because there are so many good solutions to stuff I needed in the past, so thought it would be good to try and engage in the ...
0
votes
0answers
29 views

wordpress random widget widget

am planning a random widget for widgets that uses jquery to fade in each widget from the top (a total of 12 displayed 3 at a time). The widget creation and animation I can handle but falling short on ...
0
votes
1answer
107 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
2answers
322 views

Unable to load “wpColorPicker” on theme customize page

Whether I'm using a Wordpress default theme or a custom one, I see the JS error: Uncaught TypeError: Object [object Object] has no method 'wpColorPicker' when I click "Customize" on the theme. I've ...
0
votes
0answers
12 views

how to call widget anywhere in theme? [duplicate]

I am using Simple Twitter Tweet Plugin. I want to use this widget anywhere in theme. How will I use it like predefined widgets we can use as the_widget('widget name');?
0
votes
2answers
28 views

Are there any official or unofficial guidelines for the styling of a widget?

I've designed a sidebar widget and found that on many themes the widget looks fine. However, certain themes make the widget look out of place (clashing with colors, bad contrast, etc.) Are there any ...
0
votes
0answers
30 views

Tabs in post of a wordpress?

I want to add tabs on a post of my wordpress website. But i am a new user of wordpress and don't know how to do it. Can anybody tell me how to do it. I will be very grateful.
0
votes
1answer
541 views

Dynamic sidebar based on category

I am new to wordpress, i have developed a basic theme to make a tutorial web site, for that i need a dynamic sidebar based on category, suppose, i have category A & B, if user is on the A ...
0
votes
0answers
71 views

I need to shorten all titles to 12 characters followed by … in a widget (in the WP e-commerce widget)

Here's the php code I tried to modify, it's the widget file for Wp e-commerce "wpsc-cart_widget.php" <td colspan='2' class='product-name'><?php do_action ("wpsc_before_cart_widget_item_name" ...
0
votes
2answers
54 views

What method should I use for a sidebar widget that reads latest posts?

At the moment, I'm building a website for a local NGO and I have the following situation: in the sidebar, I should have a widget that displays the title of the latest editorials from the members of ...
0
votes
0answers
68 views

Conditionally enable autoplay when using oEmbed in a custom widget

I'd like to have all oEmbed urls (youtube, vimeo, soundcloud, etc.) behave as they usually behave, with one exception. In my theme I've created a widget that gets data from a given post. The post ...
0
votes
1answer
31 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
0answers
48 views

Custom plugin appears outside of the sidebar container

I created a custom plugin that activates a custom contact form widget, and when I add it to my sidebar, it appears outside of the sidebar container. Here's the code for calling the sidebar: ...
0
votes
0answers
35 views

WordPress widgets manager option for emulating theme layout

My theme has 6 widget containers. I'd like to be able to offer users a screen, similar to the existing widget manager, that presents these sidebars in a layout that mimics my theme's default layout. ...
0
votes
1answer
578 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
0answers
56 views

How to set _multiwidget option value via custom sidebar widget class?

In this post: How Can A Widget With Only One Instance Be Defined? ... @OneTrickPony says: another way might be to set the _multiwidget option to 0. Like $settings = get_option("widget_text"); ...
0
votes
3answers
321 views

Custom Widget outputs the input but doesn't save anything inside the textarea

I've been working on my first widget, Everything works perfectly except it doesn't save anything I add to the textarea box. It will output the input on the website however. From research I think its ...
0
votes
2answers
271 views

how can i display all youtube videos from a users youtube account

I want to display all recently uploaded youtube videos from my youtube account as a widget on the right side of the page. Just like how technobuffalo.com has done. Is there such a plugin that will do ...
0
votes
1answer
106 views

disbale default widgets on theme activation

I want to deactivate all default widgets on theme activation which are active by default for new WordPress installation. I'm using following function as callback for theme activation : if ( ...
0
votes
0answers
11 views

Can I make my widget of my video only automatic on the homepage?

I have a video that is automatic when someone logs onto my website homepage (wordpress). But I only want it to be automatic on the homepage. It is automatic on every page. How can I turn it so that it ...
0
votes
1answer
73 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
113 views

How to show widget in frontend?

**I'm sorry about my english. I'm newbie in wordpress. I try to create a small widget for embed video from youtube or others video hosting. Everything is going well in backend (Wordpress ...
0
votes
0answers
155 views

Set Custom Post Type in Widget Settings for use in Widget

I'm trying to dynamically list all of CPT's in a dropdown, set one in the widget settings and then echo that value in the actual widget output. I can't seem to get it to work though. I was trying to ...
0
votes
0answers
181 views

Output thumbnail for current DJ using Radio Station Plugin

So I've installed the "Radio Station" to my Wordpress installation. All seems fine with that. There's a widget included with this plugin that is meant to display "On Air" information about the ...
0
votes
0answers
29 views

Auto-Creation of sidebar area when new taxonomy term is created

I have a few different custom taxonomies and was wandering if it was possible to automatically create a new sidebar widget area whenever a new term within the custom taxonomies gets generated, and ...
0
votes
0answers
184 views

How to hook into drag-and-drop / collapse-funktion from backend?

I am building a free theme for knowledgemanagement. At the frontend i want to drag and drop and collapse the elements (articles, widgets, ...). I look a lot of time to several tutorial but can't get ...
0
votes
0answers
102 views

Show most popular posts widget which is unique for each author

There are lots of popular posts plugins and most of them offer widgets as well. but so far, I haven't found one that allows you to filter the popular posts based on the author. I want each author to ...
0
votes
1answer
45 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
13 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
44 views

Page specific values in widgets

I have a travel guide website which I have created with WordPress which contains destination guides. On the destination guides pages I have a sidebar which displays destination statistics (currency, ...
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
0answers
66 views

The widget->form parameter is empty even though options have been saved

Why is $instance empty in Widget->form($instance)? How comes WP can use it to fill out the form , but I don't have access to it's contents? The widget is technically working, I can save the ...
0
votes
1answer
164 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
780 views

Custom widget using get_categories select menu dropdown

I have created a custom widget that is supposed to display a select menu with all the categories the blog has. I have used get_categories to compile the list. This works fine and all categories appear ...
0
votes
0answers
203 views

Wordpress $wpdb->query() inserts multiple rows with duplicate data

I am experiencing very strange problem with wordpress query() function. I have a form on page 1 where below code to insert a new record. if(isset($_POST["transaction_id"])){ global $wpdb; ...
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
0answers
58 views

Custom widgets in theme option page

I'm trying to create a simple theme options page that uses widgets to change the layout of content on the front page. I started off by using meta boxes not realizing that the position is based on ...
0
votes
2answers
185 views

Widget to show posts in the sidebar basing on its IDs

I am trying to create a widget that displays posts in the sidebar taking post IDs as input from the user. The result of my code is that the widget displays just the first entered ID and ignores the ...
0
votes
2answers
82 views

Showing related posts (custom post type) outside of the loop

I'm trying the following (it's a sidebar widget in the Single New template): <ul class="featured-jobs"> <?php $postid = $post->ID; $categories = ...
0
votes
1answer
42 views

Creating Multiple Admin Widget Page with Calling One Sidebar

Does anyone know how to create multiple admin widget pages with calling specific sidebars? In Detail, I have a custom post type called Groups and I am creating new admin pages in the back end. I ...
0
votes
1answer
94 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
95 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
0answers
21 views

My blog has a design issue.

My blog has been getting a good visitors these days. I have used linkwithin add ons to show related posts. But the problem is it is showing related posts in even homepage. Is there any way to not to ...
0
votes
0answers
27 views

Widget Disappearing in IE

Im debugging my site in IE, and my widget area is disappearing. http://pcdconsultancy.co.uk/ Any ideas? I have no transparency or anything on this.
0
votes
2answers
40 views

user definable sidebar per page

I'm searching for a solution where the user can define some sidebar widgets for himself (only text and images). The user should have the possibility to choose a different sidebar for a different page. ...
0
votes
2answers
106 views

Widget redirecting to home page

Am trying to create a widget that searches for names. The searching and all that is fine, but when I hit submit, I get returned to the front page. I tried messing with the action="", but no matter ...