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

learn more… | top users | synonyms (2)

0
votes
2answers
3k views

A form in a custom widget

I'm trying to build a contact form custom widget. So i would like to display a contact form with a WordPress widget and send a message. No problem to display the form with my widget but when i click ...
0
votes
1answer
479 views

Problem with WP_Query loop and search term

I have a custom query to display random posts in my sidebar like this: $newQuery = array( 'post__in' => get_option('sticky_posts'), 'post_type' => 'ad_listing', 'posts_per_page' ...
0
votes
1answer
109 views

Listing all sidebars

How to list all existing sidebars? I want to show them all in the drop down list (so each item should have also the right value).
0
votes
1answer
656 views

My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?

OK, I can create the code to add custom widgets to the widgets manager. Check. My next challenge is to, in the same plugin, during activation, check for the existence of my theme, and if active, ...
0
votes
1answer
426 views

jQuery slider widget similar to cnet.com

I'm building a WP theme that requires a splash graphic "slider" widget (similar to what you see on cnet.com). I'd like to build one myself, mainly so I can have full control over the bits, but if ...
0
votes
1answer
675 views

How put links in wordpress dynamic sidebar?

i would like put link after each widget in dynamic sidebar. I thinks is possible if i use static sidebar, but i don't found any tutorial for this. Thanks you
0
votes
2answers
995 views

How to show multiple instances of the WP125 Widget?

I have multiple sidebars, based on different pages. How can I get the WP125 widget to show on all of them?? Once I add it to one sidebar, it is unavailable to put on others (like many other widgets by ...
0
votes
1answer
2k views

recent comments filter by author, page, category

is there any way to display recent comments in a widget area only for one page? = Comments that are belongs to one page. comments of one category but not from admin ( or some other user ) I want ...
0
votes
2answers
2k views

How to list all custom post types in a custom widget?

I tried the Following (whihc lists custom post types called Static Content): <?php add_action("widgets_init", array('Widget_name', 'register')); class Widget_name { function control(){ ...
0
votes
1answer
667 views

Add SideBar/Widgets Just Below the Post

I have created and registered side bar in function.php and using it another place. It's working fine. Now I like to use it just below the post. I have installed some plugins -Bookmarks, related ...
0
votes
1answer
536 views

Wp-admin widgets have no title texts

In wp-admin when I enter widgets I see their bars, but the titles of widgets are missing. only :Something remain visible and the others are gone. What happened? How do I fix that? Edit: Found it ...
0
votes
2answers
2k views

widgets in footer?

Can i use dynamic_sidebar('first-footer-widget-area'); directly in footer.php?Any change to made in functions.php page? I am using twenty ten theme.
0
votes
1answer
155 views

Why aren't my Follow Me links working?

I've been working o my website and I just noticed that most of the links from my Follow Me plugin are broken. The feed link works fine, but everything else leads to a 404. I can see what's wrong ...
0
votes
2answers
563 views

How to embed form data within the 'Add new post'

I want users to be able to use a car template in new posts. The template will include items such as a photograph of a car, make, model, number of doors, colour of car, etc. Users will not want to use ...
0
votes
1answer
171 views

How to use stack flair on my site?

I want to add stack flair on my WordPress site. How can I use that? I want to put it in the right hand side column. Can anyone help me with this?
0
votes
1answer
216 views

Wordpress Local to Live and The Missing Widgets!

I have just finished my local dev of a wordpress woo theme for a client which has extensive sidebar customization and widgets. Ive done a full mysql export and import via phpmyadmin. However when I ...
0
votes
1answer
545 views

Is there any plugin to show number of clicks on the link?

I have a post having different links. I have to show number of clicks on each link. Is there any link to show number of clicks on the link?
0
votes
1answer
174 views

“Folding” links in the blogroll

I've got a site (this one) with too many links in the blogroll. I want to keep them there, but to maybe have them "fold" in the menu (after some of them showing without the unfolding of the menu) ...
0
votes
1answer
503 views

Widget constructor: about $id_base and $options

in the book professional wordpress, they use something like $options = array( 'classname' => 'pp_widget', 'description' => '...' ); $this->WP_Widget('pp_widget', ..., $options); ...
0
votes
1answer
53 views

In a specific blog, the K2 theme does not have a Text Widget

I have a WPMu installation on a closed network, and one blog is using the K2 theme, but the Text Widget is not offered as an option. When I switch the theme to Default, the Text Widget is offered. ...
0
votes
0answers
9 views

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar?

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar? I don't see any options to do this even within plugins, which is confusing to me. It seems a great place to have it - above ...
0
votes
0answers
12 views

Trouble with Dynamic Input on Widget, Unable to get Widget ID

I'm trying to create Widget with dynamic input as the widget options. The Option fields are Feature (text), Price (text), and Picture (Text with upload button). For some reason, I couldn't get the ...
0
votes
0answers
35 views

Widgets not displaying since 4.3

I had some basic widgets registered and assigned to sidebars which were working prior to upgrading to WordPress 4.3. class Footer_Contact_Widget extends WP_Widget { public function __construct() ...
0
votes
0answers
6 views

How to replace a widget by editing it in the child theme?

I am fairly new to wordpress. I heard that changing a theme widget in the theme itself is not a good practise. I want to edit a certain widget by copying it into the child theme. The widget in the ...
0
votes
1answer
27 views

Nonce and widget

I've been screening the code of several widget and haven't found any one of them handling nonce. I also took a look at the WP_Widget class and found nothing about it as well. This is from the codex: ...
0
votes
1answer
27 views

display custom post type in widget aera

I am using https://wordpress.org/plugins/custom-post-type-ui/ plugin for custom post types. Now I need to display contact information in my footer area, email, phone num , address etc. For this I have ...
0
votes
0answers
13 views

Are dashboard widget settings global?

I followed the example of how to create a create a dashboard widget from WordPress' site to make a widget that reads an RSS feed and displays the items (yeah I know there are plugins that do this but ...
0
votes
1answer
51 views

How to add image uploader to a custom widget?

I'v built a custom widget that will show some sport scores. Scores are added trough custom post. When i open new custom post(scores) i enter their team names, score, scores. Now i want to add an ...
0
votes
2answers
11 views

Redirect to page after a widget form submit

I have a widget form with custom fields like age,pincode etc.The submitted form data will be submitted through a 3rd party API which will output me JSON. Now I want to redirect to a page showing the ...
0
votes
0answers
23 views

After wordpress widget save (ajax call) tinymce editor gone, data not saved

I have made tinymce editor for textarea fields in widgets. I'm enquing scripts: wp_enqueue_script('tinymce', home_url() . '/wp-includes/js/tinymce/tinymce.min.js'); wp_enqueue_script('tiny', ...
0
votes
1answer
16 views

Custom post type not being pulled in widget

I am creating a widget that displays data from my post type 'testimonials'. The back end of the widget is working fine and displays a list of testimonials and allows me to select which I want to ...
0
votes
0answers
7 views

Ensure widget admin js fires in Widgets and Customizer

Doing a long-overdue update of a plugin. I have some JS that loads in the admin side to react when a user changes a select value in the widget options. $('#accordion-panel-widgets, ...
0
votes
0answers
15 views

wp_dropdown_categories() in function form () doesnt work in page builder

I am creating my very fist widget which will show 5 post from certain category in a certain way on my wordpress site. I have main function ready with hardcoded category number in it and now I would ...
0
votes
1answer
32 views

Creating a widget with a number of custom fields

I am attempting to create some custom widgets. I have created one, which only needed a different title field. However I am now stuck when trying to create a widget which allows me to have multiple ...
0
votes
1answer
24 views

Plugin Works, but Widget Doesn't

I really haven't got a clue here. I've been busily developing a custom WordPress site, using custom plugins and widgets for some of the custom functionality, and I've hit a snag. No matter what I ...
0
votes
0answers
8 views

Can't access global scope in widgets

How to set global/static variable inside of a widget function of a widget? I use this code: class MY_Widget extends WP_Widget { function widget( $args, $instance ) { global $myvar; ...
0
votes
1answer
16 views

Even with PHP plugin get_posts not working in widget area

I have the following code in a template, it and displays images form a custom field: <ul class="about-us-grid"> <li> <?php $posts = ...
0
votes
0answers
16 views

Update the same widget in multiple sidebars

I have a fully functionnal widget with some inputs and I put this widget in a second sidebar. I want to know if it's possible to automatically update the second widget with all the informations ...
0
votes
2answers
11 views

in_category('category-sluga') returns true for Archive page of Category 'category-slugb'

I've got a Category Archive page with name category-slugb.php. I have a sidebar with some Widget Logic that uses in_category('category-sluga'). What's odd is that on this Category Archive page (i.e. ...
0
votes
0answers
14 views

Update title of every instance of widget using text field

I have created a simple widget which looks like this: As there are going to be many instances of this I want to know if it's possible to update the title of each instance (where it says 'Membership ...
0
votes
1answer
30 views

how to run a php code in widget?

I have a code to get all taxonomies and terms for a single post: $object_terms = wp_get_object_terms($post->ID, 'staff', array('fields' => 'all')); if ($object_terms) { echo '<p>' . ...
0
votes
0answers
15 views

Modify default widgets

i want to add a class to the link inside the footer widgets. how can i do that ? I found a way to add a class to the widget it self but not to the link inside of it ! The concerned widget are ...
0
votes
0answers
6 views

How to add images to widget instance from backend

I am working on a project which has content(no posts) and I want to give complete control to user to change and edit content from admin panel. I have created widget added fields to it but I don't know ...
0
votes
0answers
10 views

WordPress returns incorrect timestamp in drip-feed widget

First off, yes I have contacted s2member support on this topic, but they have not been super helpful. Additionally, I'm not convinced this is an s2member plugin issue. Ok here goes: I'm working on a ...
0
votes
0answers
13 views

Get the sidebar title outside widget

I want to find a way to get the sidebar title outside of the widget area. My actual functions file: if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => __( ...
0
votes
1answer
35 views

Widgets Opening In New Window - Unwanted

I am dumbfounded as to why my sidebar image widgets are opening links in a new window when I do not have the "open link in new window/tab" checked off. The box is blank. My page is ...
0
votes
1answer
18 views

How to call theme default widget in custom template?

I have default widget available called "Recent Post" created by theme. I want to call that widget in my custom template which I made. I am trying in following way , But that is not working. ...
0
votes
0answers
8 views

Hooking into action that fires in wp_head from widget on front end [duplicate]

I have a custom action hook for which the do_action() is executed in a function that hooks into the wp_head action. I would like to run add_action() for that custom action hook from the front-end ...
0
votes
0answers
17 views

Theme Customizer not recognizing Widgets

First of - i do not know much coding, though i do learn quickly and am looking to get this issue sorted ASAP. I am sure it is something simple. When i load up my site in the Wordpress Theme ...
0
votes
1answer
38 views

How to Register and Display Widget for Custom taxonomy

I have registered a Custom Taxonomy Named as Album, Now i want to register and display a custom widget like category to display recent 'x' albums with thumbnail on my sidebar. Below is a piece of ...