Widgets are configurable elements used to dynamically build sections of a WordPress theme.
0
votes
1answer
19 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, ...
1
vote
2answers
114 views
Widget items disappearing
if ( function_exists('register_sidebar') )
register_sidebar(array(
"name" => "Top Widget Area",
"id" => "topWidgetArea-$i",
));
I just create a new sidebar with this.
...
0
votes
2answers
81 views
How to Catch Last Widget box From Same Widget Area?
is there any Way to Catch Last widget box or div from same widget area?? i mean i have 4 widgets in footer widget area but due to design issue my 3rd widget box style+width is different.so i want to ...
0
votes
1answer
23 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
18 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
27 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 ...
0
votes
1answer
117 views
how to implement a language switcher widget / plugin for users
I'm needing to create an option for the users to change the language of the site. So, for example there would be a dropdown with languages that the user can choose from and this would change the ...
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 ...
1
vote
1answer
191 views
How Can I Duplicate a Widget?
By duplicate, I don't me copy the code from a (core) widget and change it a bit. That's pretty easy.
I want the push button ability to grab all the settings from a given widget, copy them, stick them ...
1
vote
2answers
486 views
Latest/Recent posts widget title link
I have been struggling with this for a few hours now...
I want to add a link to my recent posts widget title.
I have tried a number of options given in forums but nothing seems to work.
Tried ...
0
votes
1answer
1k views
Woocommerce Product Category Widget - hide categories that have no products in stock
I'm using WooCommerce on my Wordpress site, and have a widget in the sidebar showing all product categories. It's setup to hide empty categories, and that works well. However, it still shows ...
0
votes
0answers
18 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
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 ...
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 ...
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 ...
3
votes
1answer
126 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())
...
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?
1
vote
1answer
2k views
Get custom field values into the sidebar/widget?
I haven't seen this done, but I want to return the custom field values outside of the loop in the sidebar.
Is there a plugin, or another way to achieve this?
thanks!
0
votes
2answers
22 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 = ...
0
votes
1answer
127 views
page url in shortcode
I have a problem.
I'm using a custom shortcode to try to get the url. If the shortcode is inside a post then it gets the post url. When I open the post on a category list, this post shortcode works ...
0
votes
2answers
356 views
Creating a custom menu/widget area
I'm looking to create a /menu/widget area like the following site:
http://www.microsoft.com/en-gb/default.aspx
please see sections under downloads, security, support, about
is this considered a ...
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' ...
2
votes
1answer
160 views
Pass variables from one widget to another widget
I wrote a widget but I need to use the variables from one widget in another...both widgets are in the same dynamic sidebar.
This is what I am trying to do: I wrote a widget that adds a footer to the ...
0
votes
1answer
134 views
How to add Ajax to the default widget calendar to support next/previous months loading?
I want to customize or replace the default calendar, similar to the default widget, but with Ajax next and previous months loading.
Ideally I would like to be able to do that (red dots are dates ...
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:
...
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
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
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 ...
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.
1
vote
1answer
106 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 ...
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 ...
0
votes
1answer
266 views
disable default widgets in Responsive theme
Theme: Resposive
I have added "Widget Context" and has set it to show a widget only on the start side. This works perfectly BUT on all other sides there shows a default widget "Home Widget 1" with a ...
0
votes
2answers
139 views
Get all posts by post_author
I am creating a back-end dashboard where I need to show all the post assigned to current user by the wp admin.
I assign user role to Author and while creating post (as a wp
admin) just assign ...
-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 ...
3
votes
2answers
4k views
Disable Specific Widgets on Selected Pages of a WordPress Website?
I would like to give a CMS look to some of my pages. I want to customize them by removing the default widgets and adding other widgets as my wish (I will use plugins like My Custom Widget to add ...
0
votes
0answers
44 views
Widget Display Options
in regards to my previous question. I am playing around with the widgets page and have added a google maps feature to the "Pages Sidebar" Tab.
the google maps feature displays on the contact page, ...
6
votes
7answers
349 views
Individual Widgets per Page
In my (page-only, no posts) Wordpress site I have a number of static blobs in need to put in a sidebar. We could call/tream thoses 'blobs' as widgets. At least they'll have a fixed html content, like ...
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.
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.
...
-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
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 ...
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 ...
