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

learn more… | top users | synonyms (1)

0
votes
0answers
37 views

How can I get the sidebar id on the current page?

How can I get the sidebar id on the current page? The question is simple. I have looked at is_active_sidebar(), is_dynamic_sidebar() but they don't provide the info that I need.
0
votes
0answers
81 views

Shortcodes in widget titles: attributes include quotes which are html encoded, why?

I wrote a shortcode plugin that works with widget titles. So I added shortcode support to widget titles like this: add_filter('widget_title', 'do_shortcode'); So my shortcode looks like this: ...
0
votes
0answers
16 views

Move Jetpack Stats dashboard widget to right side

is there anyway to move this? I've followed the instructions in the WP docs to no avail.. / / Global the $wp_meta_boxes variable (this will allow us to alter the array). global $wp_meta_boxes; // ...
0
votes
0answers
65 views

Does w3 total cache cache widgets?

I wish to know whether using w3 total cache also caches widgets on the sidebar? I have a recent activity widget on the sidebar that displays live activity on the site like user joining, sharing etc. ...
0
votes
0answers
50 views

How to detect shortcode usage, submit a form from widget to that page?

I've created a plugin and now want to create a widget containing a form that will submit to the page where my plugin shortcode is embedded from any wordpress page on the front end. I assume that ...
0
votes
0answers
14 views

Modify the siderbar footer

I have to update a website made with wordpress, and I can't find how to change the "sidebar footer". here's the link to the website: somatbel.be the part I want to change is right under the last ...
0
votes
0answers
18 views

grouping my widgets wordpress

In the widgets page, there are two boxes "Available Widgets" and "Inactive Widgets". How can I add a new boxe with my custom name where I can group all my widgets.
0
votes
0answers
30 views

echo the_modified_date('j/M/Y') in after_title

I want to add a "last updated date" in a span inside a specific widget here's my function so far function add_front_sidebar(){ register_sidebar( array( 'name' => 'Front Sidebar', 'id' ...
0
votes
0answers
31 views

Is there a “widget slider?”

This is surprisingly hard to search for on the internet given the keywords that have to be used. I am looking for a widget slider. To be clear, not a slider widget which you can put photos, videos, ...
0
votes
0answers
26 views

How can I make a widget to work only for the products from the current category?

I have an ecommerce wordpress website with Woocommerce plugin. On category pages, I have a widget that filters the products by attributes. But the problem is that the filter works for all the products ...
0
votes
0answers
50 views

Adding SSL verification seal javascript from Thawte breaks website

We are trying to add Thawte SSL seal javascript to our website, but it keeps everything else from loading if added to a normal text widget. For example, if we add it to where the Thawte SSL image link ...
0
votes
0answers
29 views

Get fields of a widget

I have a widget that has fields, so how can I get these fields in my Metabox. I have tried with this variable $wp_registered_widgets, but I can't get the fields. Is there any solution for my ...
0
votes
0answers
17 views

Widgets dissapearing in adminpanel

I have 2 sidebars registered. They appear as they should in the Widget are and i can drop widgets into them. When i save the widgets the widgets content appears on the website where the sidebars are ...
0
votes
0answers
31 views

Widget page broken

using WordPress 3.3.1 Im working on a wordpress site i did not build and i have registered a widget area. There was none before. Now when i go to the widget page it looks like this and i suspect ...
0
votes
0answers
22 views

want use a wordpress widget two times

I have a widget installed in wordpress i want to use this widget two times with different configuration but after first use it disappear from widget list if someone have solution for using many times ...
0
votes
0answers
41 views

Widget in child theme having missing argument

I'm trying to build a child theme on top of a parent theme. So far so good but now I'd like to modify a parent theme widget. So I setup my new file in the child theme, require_once the file, and ...
0
votes
0answers
40 views

Widget area does not show any contents for specific users in admin interface. How to go about debugging?

I use a custom theme on a WP-Multisite instance which also uses WPML plugin. I am pretty technical and I can read PHP code but I do not have any WP experience. The theme has three custom widget ...
0
votes
0answers
30 views

Widget to calculate time from a certain date

I'm trying to create a widget that will display the amount of time passed since a specific date, however I get this message: "function WP_Widget::widget() must be over-ridden in a sub-class." This is ...
0
votes
0answers
35 views

Problems after transfering WP

After transfering my Wordpress to a new domain I can't add new things like images to post or even "text field" to widget area. I see only white blank page after that actions. Everything else looks ...
0
votes
0answers
46 views

How to dynamically select particular WordPress Category?

I build my simple wordpress magazine and I have multiple categories, like cover, volume 1, volume 2, etc. In the index / homepage, I want to display table of content for each volume (based on ...
0
votes
0answers
39 views

Conditional before_widget and after_widget

Is it possible to use a custom before_widget and/or after_widget value for certain widgets? For example, I'd like to add a opening <div> tag before the first and closing </div> tag after ...
0
votes
0answers
90 views

How to add sort category using post views in wp_list_catgory?

I am using widget-reloaded plugin and i have a function which count post views. <?php // function to display number of posts. function tie_views( $postID = '' ){ if( !tie_get_option( ...
0
votes
0answers
46 views

Avoid replacing single quotes

In my WordPress widget I include a PHP file which hase the following content: <div id="<?php echo $args['widget_id']; ?>" data-style='{"width":"35px"}'> </div> However, WordPress ...
0
votes
0answers
30 views

How to use native wordpress tag metabox in a widget?

I'm developing a custom theme for a client and one of the requirements is to allow the home page to be configured via widgets. One of the widgets that I'm also developing will allow the client to ...
0
votes
0answers
53 views

“Display as dropdown” option in Categories Widget hides the dropdown

I've never used this option, and I was testing it on my theme but when I clicked the "Display as dropdown" checkbox and went to see what the widget looks like - it was hidden. The HTML code looked ...
0
votes
0answers
93 views

Creating an custom admin page for editing widgets

There is always danger in thinking your almost there... The end Goal: A custom page in the admin menus where i can edit a widget I constructed. Where I am now: I have registered a custom menu I ...
0
votes
0answers
45 views

Widget ID on Drop

This code will give me the widget ID if the widget is moved at all after the initial placement. jQuery('div.widgets-sortables').on('sortstop',function(event,ui){ ...
0
votes
0answers
231 views

Widget dynamically add new input field

I'm trying to edit widget and add new input field for facebook user ID and Location. The widget has 4 parts of code, display the widget on the screen, fetch facebook userdata and post, update widget ...
0
votes
0answers
41 views

Changing the default widgets of new multisite blogs

I run a wordpress multisite.The thing is that I would like new blogs to have widgets and themes that are different from the default one.If you run a multisite installation then you know that ...
0
votes
0answers
108 views

Filter CPT based on meta box value using Flexible Posts widget?

I'm using the Flexible Posts Widget to display a list of "deals" (a custom post type) in my sidebar. I'm also using that plugin's capacity to use a custom template to control the display of that ...
0
votes
0answers
39 views

Automatically hide Widgets that would lengthen page

Something I've been dreaming about ever since I started using CMS's for making websites. I've settled on WP now, so hence I'm asking here. I conditionally hide widgets on certain pages that are very ...
0
votes
0answers
84 views

How to manage a 200 sidebars website? widgets.php page is way too slow!

I'm using a plugin called "Simple Page Sidebars" (http://wordpress.org/extend/plugins/simple-page-sidebars/) to manage the sidebar of pages. The problem is that now, I have more than 200 sidebars in ...
0
votes
0answers
7 views

How do I create pages for specific people to insert content in specific fields while retaining the theme/look of my page?

My site has multiple pages, but I want to create pages where associates can upload their profiles and other information, but i want the look of the pages and style to be editable only by myself. How ...
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
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
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
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
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
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
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
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 ...