Widgets are configurable elements used to dynamically build sections of a WordPress theme.
0
votes
1answer
26 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
27 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
19 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
28 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 ...
1
vote
1answer
16 views
Including a custom post type in the Archives widget
I have a custom post type called "videos" that I want to include in the Archives widget (stock widget in the TwentyTwelve theme). It DOES already appear on the archives page, but just not in the ...
0
votes
1answer
19 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
14 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
17 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
29 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 ...
1
vote
2answers
23 views
Displaying a widget only on long posts (over X characters)
I'm looking to display a standard wordpress widget only on posts that are over X amount of characters in length (or another method that can roughly calculate the height of of a post.)
I am looking to ...
0
votes
2answers
23 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
1answer
22 views
Update widget form after drag-and-drop “only specific plugin”
This solution, Update widget form after drag-and-drop, works correctly but I want to adapt this function to affect only a specific plugin and not every plugin. How could I do it?
0
votes
2answers
23 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 = ...
2
votes
1answer
51 views
register sidebars
i registered my sidebars as follows:
$sidebars = array (
'sidebar-10' => 'Hoof Sidebar',
'sidebar-11' => 'Tuisbladsy area een',
'sidebar-12' ...
0
votes
1answer
17 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 ...
1
vote
2answers
40 views
Retrieving list of a custom post type in a widget without using WP_Query?
I'm using the following widget to retrieve a list of the custom post type jobs:
class FeaturedJobsWidget extends WP_Widget
{
function FeaturedJobsWidget()
{
$widget_ops = array('classname' ...
0
votes
1answer
36 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
29 views
Why is my custom widget breaking another one?
The first plugin is somehow breaking the second one (the content of the second one doesn't show up at all):
plugins/featured-images.php:
<?php
/* Plugin Name: Featured Jobs
Plugin URI: [Enter ...
0
votes
1answer
16 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
22 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
1answer
20 views
Creating a dynamic class name in my custom widget
I have been currently building a custom widget in WordPress based on the text widget as a starting point. It seems that within the function __construct part of the widget, the class name is a hard ...
0
votes
2answers
19 views
including image assets in widget
I've written my first simple WP widget-- it all works fine, but I'd like to dress it up a bit, and add an image / logo in the widget display code.
How do I package the widget (which is just a single ...
0
votes
1answer
23 views
Forcing the title of a text widget on to a new line in the admin area
I have created some custom widgets based on the standard WP text widget by extending the WP_Widget class. I would very much like to force the title of the widget on to a new line in the sidebar ...
2
votes
1answer
25 views
nowplaying.include.php Will Not Display Results
Cyberchimps.com recommended I post here as they believed there may be a global issue with my request. I thought what I was missing was obvious and simple, but two months into this and being referred ...
1
vote
1answer
29 views
Using ACF in a widget
I've built a widget to show pages from a certain category in a dropdown menu. The page that's selected will show up on the homepage. This all works, except the Advanced Custom Fields (ACF) are all ...
1
vote
1answer
107 views
Use Media upload in custom widget on wordpress 3.5
I'm creating a small widget for wordpress 3.5 that allows you to upload images.
The widget is loaded correctly by wordpress. When I add the widget to a sidebar upload button does not work. If I ...
-1
votes
0answers
22 views
disable drag of a widget in a single sidecar
I Have build A HOME page with 2 sidebar
I have created a widget and this widget show A slider only if the sidebar is sidebar 1
my purpose is alert the user with an alertbox if the widget is dragged ...
0
votes
0answers
29 views
Remove “In archive” widget [closed]
Using the "responsive" them, how can one remove the "in archive" widget that appears on the right sidebar? I was able to delete all but this one.
-1
votes
0answers
14 views
Problem aligning widgets in a row [closed]
I have added two widget areas at the bottom of the homepage content at http://79.170.40.241/refthecoffeefactory.co.uk/
I am having a problem aligning them horizontally. I also came across the same ...
0
votes
2answers
20 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
1answer
24 views
Add a select-option to the default widgets
I would like to add an extra feature to one of the default widgets so that the user can choose from the select-field to either align the widget to the left, center or to the right.
How would I be ...
-1
votes
0answers
19 views
category widget in wordpress
I have about 2000 video post to be posted. and lot many no. of categories for those videos.
I just do not want the category list to keep growing on and making my page lengthier. Could anyone suggest ...
0
votes
2answers
50 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 ...
0
votes
1answer
45 views
Override WordPress Widget CSS Classes?
I'm attempting to style lists in the sidebar (you know, <ul><li>) and I'm curious how to also make widgets adopt this class. Each widget seems to have its own class assigned to it by ...
1
vote
1answer
41 views
How do i export the HTML from text widgets?
I placed HTML in several text widgets which where lost after i deleted all inactive widgets and changed themes but i have found the data in the tables.
The only problem, its mixed in with all this ...
0
votes
2answers
43 views
making footer widgets responsive
i have 4 footer widgets in the theme i'm working on. it works great. the only thing that i cant get to work is the responsiveness of the widgets. The 4 footer widgets keep on showing up next to each ...
0
votes
0answers
29 views
Getting a “Cannot modify header information - headers already sent by…” after duplicating widget
This probably isn't the smartest way to go about it, but I'm very close to launch and the client wanted a news widget displayed two ways. Our theme's news widget displays a settable number of news ...
0
votes
0answers
55 views
Custom “Latest News” widget wipes out the site
I want to register a custom "Latest News" widget, which would be teh exact copy of the default "Recent Posts" widget, with minor modifications.
Here's the original code, taken from the ...
-1
votes
2answers
65 views
Code for Recent Posts Widget
I want to make changes to code of the Recent Posts widget – could anyone please tell me where that code is located?
Thank you in advance!
0
votes
1answer
21 views
Log-in/Current user information widget?
I would like to allow my Wordpress users to log in through a widget which, after logging in, would be replaced with the user's information (i.e. avatar, profile link, logout link etc). How may I ...
0
votes
1answer
27 views
How to Get Admin Settings for a widget when using the_widget() with custom widget
I have searched around for an answer to this question and I found this: Manual display of widget which gave me a solution of:
if(function_exists('the_widget')) {
$instance = get_option( ...
1
vote
2answers
21 views
Disable widgets on specific posts
I run a horror related blog. Google is upset with me for displaying adsense in a sidebar widget for one specific post number (4603) that contains an article about an 18+ topic. How can I disable the ...
0
votes
1answer
58 views
Widget Development - Displaying dropdown content
I'm using the following code to create a widget to select a post from a dropdown - which works fine in the backend, but I can't figure out how to display this on the frontend...
<?php
class ...
-2
votes
2answers
38 views
How to use widget on page or post?
I am just using Random image Widget, it's for image gallery. Please anybody tell me that how can I use this widget functionality on my website page or post?
0
votes
3answers
61 views
Validating widget's configuration data on Admin page
I have a simple widget that needs its width and height set by the user, so that it is displayed properly on the blog.
The thing is: on the Administrator/Appearance/Widgets page, if the admin user ...
0
votes
1answer
21 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
2answers
34 views
Hooking Into Widget Output Loop
When wordpress sidebar outputs any particular registered sidebar it loop through all widgets that assigned through it and outputs it (i guess). Is is possible to hook into the loop and add some ...
3
votes
2answers
63 views
Delete Custom Dashboard Widgets
Here is the code on how to delete all dashboard widgets - the default, and plugin widgets but I want to change the code to only delete custom dashboard widgets not the default ones.
// Create the ...
0
votes
0answers
14 views
Widgets input/content not visible
I created a theme, and when I drag and drop a widget in the widgets area the widget's content is hidden.
This is what I attempted:
Switch with other theme and activate my theme (doesn't work)
copy ...

