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

learn more… | top users | synonyms (2)

0
votes
0answers
16 views

Show widget location borders for development

I'm taking over a wordpress site, whose template has a high number of widget locations in the appearance section. Is there a way to temporarily turn on the widget location borders so I know where ...
0
votes
0answers
24 views

add_filter('body_class') running from widget even when widget is not loaded on page/post

This should be adding a function to init() to check if the widget is active widget on the front end on a page/post - but even when the widget is not loaded on a page/post, .Widget_FilterProject is ...
0
votes
0answers
26 views

Add TinyMCE to WordPress default text Widget

Wonder if there is any way to add the TinyMCE (limited options) to the textarea of a default "Text Widget" in WordPress, Is there any way to do that ? There are few plugins to do the same kind of ...
0
votes
0answers
24 views

Hide/show radio buttons stop working on save

everyone! Here's my case. I'm developing a little widget, and I was looking for a way to hide/show different DIVs on selecting a set of radio buttons. I found the proper code and adjusted it to my ...
0
votes
0answers
37 views

Wordpress Widget Administration Javascripts do not work?

I have been working on a widget in WP 4.1.1 and cant seem to even get simple javascript to function on the backend unless WP is put into Enable Accessibility Mode. For example in your Form($instance) ...
0
votes
0answers
14 views

How know the “admin” blog from wordpress multisite?

I'm try to construtc a multisite plugin and when I've the multisite list with all the blogs, I need to remove from this list the "admin" wordpress multisite. For example: I've the multisites 'ids' ...
0
votes
0answers
24 views

image carousel widget

Is there tutorial how to build widget where you can upload multiple images? I was trying to look some tutorials on widgets but to my surprise there are only few online. Or then my googling skills are ...
0
votes
0answers
23 views

PHP Wordpress Monthly Top Author in Sidebar

Im trying to show List of Top Author by Property Update Count (Monthly) in my sidebar. How to adjust this php code. This php only show AUTHOR list in my sidebar, not sort it by Monthly Property Update ...
0
votes
0answers
39 views

How to display comments with recent comments default widget?

I would like to create custom widget from the default Recent Comments widget to show also the comment content of commenter. How can I do it? class YOUR NEW WIDGET NAME extends WP_Widget { // ...
0
votes
0answers
27 views

creating widget of rotating testimonials

Using this article, http://www.wpbeginner.com/wp-tutorials/how-to-add-rotating-testimonials-in-wordpress/ I converted entire code into widget. In widget creation, I have used title option only. Also ...
0
votes
0answers
13 views

Get widgets from particular sidebar

I created a new widget with name rocky_custom_post. It has two instance 'post_id' and 'position'. Post ID is the ID of the posts in WordPress and position is left, right, full. I created a sidebar ...
0
votes
0answers
49 views

Expand Widget Area With Archive DropDown

I have archive drop down widget. but when i open list, these lists are floating over below widgets and not expanding its parent area for drop down list this widget is added by wordpress widget area ...
0
votes
0answers
16 views

transform default widget_category in accordion

Im trying to transform the original widget category from wordpress as accordion; I can find the files which are: default-widgets.php and category-template.php HOwever my back end skills are quite ...
0
votes
0answers
17 views

How to add additional for each statement

I am using the function below to display the date of an event (using the Event Espresso plugin). I need to add next to the date, on the same line - the city and state of the event using this for each ...
0
votes
0answers
20 views

How can I build a widget area widget using the built in Wordpress functionalities?

My Home has a Main Area that consists of all sorts of widgets. Now I am looking for a solution where I can add a custom widget area as a widget and then add all the needed widgets inside that custom ...
0
votes
0answers
21 views

twitter widget loads properly in all themes except my own theme?

I've written my own theme for my wordpress website. The problem is that the twitter widget loads properly in all the themes except mine. Below is the attachment of the widget in both the themes - ...
0
votes
0answers
43 views

Unique widget id to target specific part of widget

I am currently trying to target widget part after title and collapse it on smaller screen where title would be a toggle. This is in my footer area and there are 3-4 widgets that I want to collapse on ...
0
votes
0answers
30 views

Widget configuration inside theme

I need to change my theme on the fly (for mobile version I have a different appearance), but widgets are not saving correctly. I tried to configure widgets from the theme, but this method doesn't ...
0
votes
0answers
43 views

Custom widget not saving values

Hello I am very new to Wordpress development , I am trying to implement custom widgets for a theme. the problem is whenever I try to save my widgets settings it will automatically revert back to it's ...
0
votes
0answers
162 views

Embed google alerts rss feed into WordPress site

adjustment on my origonal question. How would I go about adding a new widget area to my current template so I can embed a google alerts rss feed? Cheers for any suggestions / solutions
0
votes
0answers
62 views

Add text editor to custom widget

I am aware of a few plugins that simply add a rich text widget, but I want to make a widget that will wrap the whole input in a class to be used in the page editor plugin. I just want to add a ...
0
votes
0answers
31 views

My widget it showing up only its title, not content after adding the widget without saving

I made a simple Recent Posts widget that not showing up its content if I don't click the save changes after adding the widget. I notice this similar issue on some WordPress core widgets too. What can ...
0
votes
0answers
87 views

How To Make Wp Dynamic Sidebar Like twentytwelve Theme

im new in wordpress and trying to create wordpess theme which can be used in any wordpress blog ,im following twentytwelve Theme as my theme example but when i try to create sidebar it does not work ...
0
votes
0answers
149 views

Creating custom search results widget

I am new to wordpress and trying to accomplish the following: I want to create a wordpress widget with the following functionality. Please advice how it can be accomplished: Widget should accept ...
0
votes
0answers
14 views

Converting hashtags into search friendly term (%23) in a widget

The plugin Hashtag can achieve this within a posts text, so surely its possible on a widget? I have no idea what I'm doing here, specifically its the widget 'Popular searches tag cloud' I am trying ...
0
votes
0answers
29 views

Enhance built-in calendar widget to dynamically browse through months

I am using the built-in calendar widget to show posts, the plugin "Future" helps me to show future posts too and so far everything works fine. But when you click on the arrows for the previous or ...
0
votes
0answers
27 views

Wordpress Custom Widget Strange Behaviour

I have developed a Custom widget plugin with a dozen of input fields. Some of those input fields load Fabtastic Color Picker. When I add the widget in any widget area, the color picker loads very ...
0
votes
0answers
10 views

Sidebar Categories Questio

I added five categories through widgets on my primary sidebar. Under each of them, all of my main categories that have posts in them are coming up. However, I only want certain categories to come up ...
0
votes
0answers
8 views

Widget is breaking on filter function

I have created a widget which displays posts based on Display Posts shortcode. All works fine till I have added filter to public function widget() to output titles only (and need to be executed only ...
0
votes
0answers
42 views

“widget” on edit.php which loads/saves data

i am trying to add a "widget" to the edit.php post-filter-table as seen in this plugin: https://wordpress.org/plugins/advanced-post-manager/screenshots/ i would love to do this with piklist or ...
0
votes
0answers
16 views

Any reason why widgets/menus get emptied when I updated custom theme code?

Deployed my site over git last nite, and client came back saying some menus in the the footer widgets had disappeared. I looked in the admin, and the widgets were still available but all the items ...
0
votes
0answers
42 views

how to convert Html block to dynamic widget?

<div class="widget-wrapper"> <div class="widget-icon"> <i class="fa fa-facebook"></i> </div> <div class="widget-title"> </div> ...
0
votes
0answers
43 views

Widget Popular Posts

I want add "code 1" inside "code 2", but I don't know how I can do this. CODE 1 (found here): <ul class="popular_posts"> <?php $pc = new ...
0
votes
0answers
22 views

Run function after theme is installed for the first time

I want to run a function to add default widgets for my theme when it's installed for the first time. I tried add_action( 'after_switch_theme', 'add_theme_widgets' ); but it resets the widgets back to ...
0
votes
0answers
133 views

Add classes to individual sidebars

This is my first time posting on here so let me know if I don't follow any rules or best practices. I'm creating several sidebars through our WordPress site and not all of them will be styled the ...
0
votes
0answers
85 views

How to change the widget's instance settings depending on sidebar

I want my widget to have one default option value in sidebar-1 and another in sidebar-2. How can I do it? I know wp saves widget right after drag and drop it into different sidebar in widget admin ...
0
votes
0answers
52 views

How to Activate Ajax autocomplete in the “Right Now widget” in wp-admin?

in wordpress multisite we have "Right Now widget" where you can search for "users" and "sites". the question is how to enable the Ajax autocomplete for this fields? the input code is: <input ...
0
votes
0answers
296 views

Recent Posts Widget to display Custom Post types doesn't display content

I have created a few custom post types on my site (WP 4.0 / TwentyTen Child Theme) and I was hoping to create widgets to display them on the sidebar. The custom post types work well but the widget ...
0
votes
0answers
44 views

Target only widgets within specific sidebar

I am trying to target widgets within a sidebar by targeting the sidebar ID To explain, I am using the - https://wordpress.org/plugins/image-widget/ - plugin and utilising their custom template ...
0
votes
0answers
60 views

How do I add a New-Post widget to my primary sidebar?

I am trying to modify the twentyfourteen theme by simplifying and deleting most of its widgets. I have done this successfully for the toolbar, but one of the widgets I would like to keep is the one ...
0
votes
0answers
123 views

Hooking action once but called twice

class GridModSidebars{ public function init(){ add_action('widgets_init', array($this, 'registerSidebars'),20); } public function registerSidebars(){ $args = array( 'name' ...
0
votes
0answers
21 views

Allow end users to change settings of a widget

I currently have a customized widget installed. At this moment, I would like to allow end users, through the use of certain admin menu (other than appearance menu) to change the settings for this ...
0
votes
0answers
42 views

How to add more than one custom widget

I created a new widget using instructions found here and it worked OK. I needed to create another widget. I created it from the default Text Widget, placing the code in functions.php (as I did with ...
0
votes
0answers
85 views

Dynamically creating classes for Widget API

So let's say I want to make new Classes for the Widgets API using some variables that the user can configure. The only way I have figured it out is to use the eval() function. This is due to how ...
0
votes
0answers
32 views

Run widget code before post content

I have a customized widget that allows the user to create a quick post on the front page sidebar. The code processing appears to happen after the post content is rendering, meaning that after i submit ...
0
votes
0answers
94 views

Custom php Widget keeps disappearing from the front end

I've created a widget to show custom testimonials on the sidebar. It checks if the post has a custom field 'customer_review' then prints a it on the sidebar. Thing is, the testimonial keeps ...
0
votes
0answers
87 views

Widget area to full width layout only

I want to add a new widget area that will only display if the layout is full page (no sidebars). There doesn't seem to be a WordPress conditional based on layout. Is there a way to do this?
0
votes
0answers
40 views

Group multiple widgets in one

Is that possible to group some widget into one. I am creating some similar widgets and I want to group them altogether. Like I want to name it "Widget Group" and when I activate "Widget Group" plugin, ...
0
votes
0answers
50 views

“Add post form” inside a custom admin widget?

I have created a custom post type (support ticket) and a custom user role (client). So, I want to create a widget that allows a client to add a new ticket (which contains only 3 custom text fields). ...
0
votes
0answers
38 views

Populating a list of IDs for a widget to use in WordPress

I am trying to create a widget that takes a list of user-given IDs for items and then displays them at random wherever the Widget is placed. So far I have the following set up: User enters an ID in ...