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

learn more… | top users | synonyms (1)

3
votes
2answers
580 views

Full width layout for custom post type pages

I'm trying to remove a widget area called 'Primary' from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ...
3
votes
2answers
187 views

How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?

I added the following to my functions.php: add_action('pre_get_posts', 'keyl_get_emp_posts'); function keyl_get_emp_posts($query) { if ($query->is_main_query()) ...
1
vote
2answers
65 views

Unregistering a Sidebar in Child Theme

I'm working with a handy responsive theme framework (Reverie) and I'm developing my own theme the right way using a Child theme. The Parent theme calls a sidebar called with an ID of 'Footer' and ...
1
vote
2answers
306 views

Add description to custom text widget and display the 5 recent post titles

I just started coding and working as an intern for a company. My boss asked me to create a custom text widget for practice in making word press widgets. The problem I am running into is I have no idea ...
0
votes
2answers
15 views

How to retrive widget title/data

I'm using this code to display widgets of certain sidebar: $sidebar_id = 'sidebar1'; $sidebars_widgets = wp_get_sidebars_widgets(); $widget_ids = $sidebars_widgets[$sidebar_id]; foreach( ...
0
votes
1answer
33 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
1answer
82 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
66 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
14 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
41 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
1answer
31 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
1answer
102 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
128 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
1answer
72 views

Using a loop to build and update widgets

So I have a widget Im making which allows users to update 4 switches. Each switch has the same fields, name, description, price, amount so I decided to build the widget using a for loop instead of ...
0
votes
1answer
117 views

Tabbed navigation in widget backend

I have just created a widget and i am trying to implement a tabbed navigation in the wp backend but it just seems more difficult than writing all the php code! The categories metabox is an example of ...
0
votes
1answer
190 views

Show or hide custom menu widget in side bar conditionally

I have been trying and searching to accomplish this. I have the "custom menu" widgets "Members Area", "Admin Area" in side bar, assigned menus to them. Fine, they display. I want to show "Admin Area" ...
0
votes
1answer
119 views

Putting a wordpress custom post into a widget

I have just recently created a widget in my Wordpress theme that inserts a widget into the sidebar. Its based upon the text widget. However the html content is hard coded into the widget and it has ...
0
votes
1answer
266 views

Saving widget gets an undefined variable

I am developing a widget for cached feeds. The widget itself works exactly as I want but I noticed that if I were to delete the widget and then add a new one (or simply just add a new one) on the ...
0
votes
1answer
240 views

WAMP to XAMPP WordPress transfer

I want to switch a WordPress site from a wamp localhost to xampp localhost. Using the Tools > Export, I saved the WordPress content to an XML file. I did not create a similar backup of the MySQL ...
0
votes
1answer
90 views

Problem with single posts not showing correct category sidebar

I'm looking for something very specific: I'm using a plugin called "Category and Tag Specific Widgets" to create category-specific html in the sidebar of each category. This only works if I click on ...
0
votes
1answer
103 views

Wordpress plugin not eching popular posts

I created a plugin in wordpress to show popular posts, but this is not returning the post and number of comments properly. Even I have comments in my post(approved as well, so this is not the case) ...
0
votes
1answer
64 views

Registering multiple copies of a widget

I'd like to be able to register multiple copies of the Quick Search Widget in the code below, so that I can have it multiple sidebars. The code has been taken from a plugin I've downloaded function ...
0
votes
1answer
119 views

Passing widget options to external script

I am trying to pass some widget options to an external script using wp_localize_script. I know how to pass the variables and how to use them within the script, but how do I extract the widget options ...
0
votes
1answer
43 views

How to create a widget on witch a registered user can create a checklist

I have no idea where to start. I want to create a widget. with the following features show a button to create a checklist. Show a list of already created checklists created by the user. Mark ...
0
votes
1answer
45 views

Wordpress Hide Widget If $_Session Is Active?

I was wondering if there is an easy solution to add some php "if" code when my website tries to show the widgets and if it has $_SESSION I set on homepage (based on the source of which they came) not ...
0
votes
1answer
95 views

Trying to output a “Most visited blogs” list in wordpress multisite

Does anyone know how to get a "most visited" list out of Wordpress Multisite? I got alot of bloggers and have been looking for a way to output a top 10/20 list of most visited blogs, but cant find ...
0
votes
1answer
169 views

Author Link in Recent Posts Widget

I want to add author link into the recent post widget. For example if any user post on my web from his LinkedIn ID (which I have allowed) so in Recent Posts where it shows, <time> By: ...
0
votes
1answer
38 views

How to stop comments widget conflicting with theme comments

I have a widget that retrieves and displays the latest comments for a WordPress site. It displays the comment author, Gravatar, comment and date / time. The function to display the comments is in a ...
0
votes
1answer
117 views

Best practice to include custom user styles in widgets

What's the best way to include custom user styles in widgets? For example adjust colors for buttons, borders etc. without having the user to develop a complete new stylesheet.
0
votes
1answer
124 views

How To Disable Category Hierarchy In Categories Widget?

I want to disable all category's hierarchy in default categories widget. With a code in functions.php . But how? Thanks in advance.
0
votes
1answer
158 views

Display a widget on a specific type of archive

I have two sidebar widgets, I need to display 1 widget on the archive pages for the standard post categories and the other widget needs to show on just the archive pages for a specific custom post ...
0
votes
1answer
104 views

An issue with register_sidebar and the admin interface

Okay, I'm sure there is an simple explanation for this problem... it's just that I can't see it right now. Here is my code adding widget sidebars: add_action('widgets_init', ...
0
votes
1answer
57 views

Strange widget behavior

I've created widget by simple copying one of the default widgets class and modifying it. The strange thing is in the widgets admin area, this widget is not shown. When I searched the page source code ...
0
votes
1answer
56 views

Radom post image/link based on custom taxonomy

How would I make a widget to display a random post's image and permalink? I would like it to pull from a specific custom content type and only posts have set the custom field of "featured" to "yes".
0
votes
1answer
41 views

I would like to display different text on different pages

I have at the very top of my page a line of text within a h1 tag thet I use for seo reasons. the text and html around it is written in my header.php. but I would like to write differnet txt so it ...
0
votes
1answer
60 views

Custom widget breaking widget section in admin menu

I am building a child theme at http://habitat.erniehigh.com for a client. I need to add custom widget that shows recent posts by category. I have built similar widgets elsewhere using basically the ...
0
votes
1answer
169 views

Wordpress RSS widget and Yahoo Pipes

My RSS widget seems to be having a mind of its own! I am using a yahoo pipe to combine multiple feeds into one feed. The output RSS is being fed into the RSS Widget. I have modified the pipe to have ...
0
votes
1answer
38 views

Imported blog page layout messed

http://uma.lohray.com/weblog/moots-part-ii/ is a blog I imported from blogger. The front page is fine, but when one clicks to read a blog post, the end of the post has parts of the right side bar ...
0
votes
1answer
153 views

Edit the Publish Widget Options

Another noob question - under the 'Publish' widget in a default vanilla installation of WordPress 3.3.1, we would like to 'simplify' the Publish widget/ Specifically, we would like to have no 'draft' ...
-1
votes
1answer
59 views

How to make custom dashboard widget to display alert in front-end?

I need to make a widget to display any alert in front end The widget is in dashboard section on backend and any user can use yet. The content of the widget in dashboard is: Welcome message On/off ...
-1
votes
1answer
58 views

Widget that shows categories with posts numbers

Is there any solution to show categories with posts numbers like 'Archives' widget without changing the font size? UPD0: Sorry if my question is not clear. What I want? We have a pretty nice widget, ...
-1
votes
1answer
26 views

What can I do to customize a widget provided with this plugin? from where have I to start?

I am using this WordPress plugin to create an immage gallery: http://wordpress.org/plugins/easy-media-gallery/ This plugin provide a single widget inside it and I would customize some litle function ...
-1
votes
1answer
41 views

Widget does not work with WooCommerce enabled

I have created a widget here https://gist.github.com/joshbenham/e03c35313282c6ac402a For some reason when WooCommerce is enabled it will not save the extra fields (greatest, great and good). I have ...
-1
votes
1answer
739 views

function WP_Widget::widget() must be over-ridden in a sub-class. when create new Widget

Show: function WP_Widget::widget() must be over-ridden in a sub-class. in website. How to fix it?
-1
votes
1answer
86 views

how to enable full width page template in woo theme memorable?

I have been trying to remove sidebar so i can use full width of page but no luck. Does anyone have any idea how to enable full width page template in woo theme memorable?
-1
votes
1answer
119 views

Add a twitter feed to my Wordpress website

My website is WilsonsTransportation. On the left hand side of my site we have "testimonials" scrolling down. I've located the coding for that in my custom theme under page-home.php. I was hoping to ...
-1
votes
1answer
26 views

Problem on register/login widgets

I have downloaded and uploaded, activated successfully the plugin : Sidebar login of wordpress.org, which can be found here : Sidebar login In the picture description of sidebar login(in the link ...
-1
votes
1answer
249 views

Extending Widgets - Exclude # of posts field from Recent Posts Widget

I am currently using this code to extend WP_Widget_Recent_Posts, but I would like to exclude the field that gives the user the ability to show how many posts they want. I have a set number in my ...
-2
votes
1answer
28 views

how to move a widget from theme 1 to theme 2?

I bought two themes for two websites but now I can't buy the domain name and host for both and decided to run just one web I try my two theme 1-metro mag 2-Glider I decided to run Glider at least but ...
-2
votes
1answer
275 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 parameters to the_widget but I don't see any changes ...