0
votes
1answer
43 views

Use of apply_filter in plugin/widget class

I'm having difficulties to find out what I'm doing wrong in my use of apply_filter() in a widget class. Here's some samples of my code: class Byad_CountDown_Widget extends WP_Widget { function ...
0
votes
2answers
32 views

Add Shortcode tag in Widget/Sidebar

I want to add a shortcode tag in the sidebar/widget. I am able to get the required functionality if I add the code in the theme's function.php add_filter('widget_text', 'do_shortcode'); My problem ...
-1
votes
1answer
24 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 ...
0
votes
1answer
26 views

jquery conflict with widget page

I'm trying to create a widget plugin that uses a jQuery code to show/hide divs in the widget form based on the selected option of a select drop menu. The jQuery code I'm trying to implement is ...
0
votes
1answer
31 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks ...
0
votes
1answer
23 views

Plugin: Unable to Save the Image Alignment Option to Display in the Widget in the Sidebar

I am trying to add a select option to help user align the gravatar image. The problem is all value are saved except for the Image Alignment. When they select Image Alignment, it will revert back to ...
0
votes
1answer
43 views

Template from scratch: Sidebars not showing widget

I have an issue wherein i have a plugin (newsletter) which has a widget whereby users can (usually) subscribe to a newsletter and other functionality. But i digress. I have been trying to create ...
-1
votes
1answer
33 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 ...
0
votes
0answers
80 views

Shortcodes in widget titles: attributes include quotes which are html encoded, why?

I wrote a shortcode plugin that works with widget titles. So I added shortcode support to widget titles like this: add_filter('widget_title', 'do_shortcode'); So my shortcode looks like this: ...
0
votes
1answer
490 views

How to add Wrapper Div/container element around Wordpress Widget Content

I want to apply style to widget content of Wordpress but I see widget Content area is not having uniform class. TextWidget are having class "textwidget" and that is uniform but other widgets are ...
1
vote
0answers
118 views

Edit and make class-wc-widget-featured-products.php update-proof

Within the class-wc-widget-featured-products.php file I need to Remove this on Line 101: <?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo ...
1
vote
1answer
76 views

Dashboard Widget Form

I created a Dashboard widget to send push notifications to an app, but the way I have it coded, whenever I make changes in the Plugin Editor and press Update File, the code gets ran and I get a blank ...
0
votes
0answers
26 views

How can I make a widget to work only for the products from the current category?

I have an ecommerce wordpress website with Woocommerce plugin. On category pages, I have a widget that filters the products by attributes. But the problem is that the filter works for all the products ...
0
votes
1answer
603 views

Show Woocommerce Product “attributes/extra information tab” in widget

I have a question concerning WP in combination with WooCommerce, I hope someone can help me out. When viewing a product on the site I would like the "extra information tab" (containing all the ...
0
votes
1answer
69 views

conditional tags for the output of a plugin

I'm still quite a newbie developer so small problems like this bring me to a stand still from time to time. I've basically built a custom plugin to display pdf images next to a link very basic I ...
0
votes
1answer
397 views

How add short description Featured Products or Related Products

I would like to have a short description in the widget Featured Products or before the list Related Products. How can I do that?
0
votes
0answers
30 views

Widget to calculate time from a certain date

I'm trying to create a widget that will display the amount of time passed since a specific date, however I get this message: "function WP_Widget::widget() must be over-ridden in a sub-class." This is ...
0
votes
1answer
45 views

My widget won't update its values when save is clicked

So this is my first attempt a creating a widget that has a functionality of creating a simple image rollover effect (if anyone wants it when it's done, leave me a message). Now I downloaded a sample ...
0
votes
0answers
53 views

“Display as dropdown” option in Categories Widget hides the dropdown

I've never used this option, and I was testing it on my theme but when I clicked the "Display as dropdown" checkbox and went to see what the widget looks like - it was hidden. The HTML code looked ...
0
votes
1answer
54 views

Passing $this->get_field_name() to javascript

I've tried doing this one of two ways: In the form method of my Widget class (which extends WP_Widget), I have the following snippet, which sets a global javascript variable: if( $instance ) : ...
0
votes
1answer
45 views

Wordpress Widget - Saving multidimensional arrays into $instance

In my wp widget, $instance has an attribute called order which will the listing order of libraries/services. I'd like to store a multidimensional associative array that will hold the id of each ...
0
votes
0answers
84 views

How to manage a 200 sidebars website? widgets.php page is way too slow!

I'm using a plugin called "Simple Page Sidebars" (http://wordpress.org/extend/plugins/simple-page-sidebars/) to manage the sidebar of pages. The problem is that now, I have more than 200 sidebars in ...
0
votes
1answer
38 views

How to display a widget on a page with no theme?

I would like only a widget to appear on a page, is this possible? As in if I created a page, I am wondering if I can make a page just display the widgets contents with no headers, sidebars, just ...
0
votes
0answers
24 views

widgets won't work after changing plugins arguments

I have problems with my custom widgets which are initialized in my templates functions.php. Till the point was working when I had to change couple of arguments in my plugins method from which the ...
0
votes
0answers
12 views

how to call widget anywhere in theme? [duplicate]

I am using Simple Twitter Tweet Plugin. I want to use this widget anywhere in theme. How will I use it like predefined widgets we can use as the_widget('widget name');?
0
votes
2answers
54 views

What method should I use for a sidebar widget that reads latest posts?

At the moment, I'm building a website for a local NGO and I have the following situation: in the sidebar, I should have a widget that displays the title of the latest editorials from the members of ...
0
votes
0answers
48 views

Custom plugin appears outside of the sidebar container

I created a custom plugin that activates a custom contact form widget, and when I add it to my sidebar, it appears outside of the sidebar container. Here's the code for calling the sidebar: ...
0
votes
1answer
2k views

Show Woocommerce minicart widget in checkout page sidebar? And, how to make this update secure by overriding widget?

Before asking question here I want to tell that I have already asked the question in stackoverflow and wordpress forum but have not got any answer. So finally I came here. I have installed the ...
1
vote
2answers
365 views

Conditional tag in Widget Logic for checking if top level page or if subpage

I'm using the Widget Logic plugin to show widgets on certain pages using Wordpress Conditional Tags (or any general PHP code). What I would like to do is only show a widget on child pages, not top ...
0
votes
3answers
319 views

Custom Widget outputs the input but doesn't save anything inside the textarea

I've been working on my first widget, Everything works perfectly except it doesn't save anything I add to the textarea box. It will output the input on the website however. From research I think its ...
-1
votes
1answer
92 views

Can I use a form in a dashboard widget?

I'm building a plugin and would like to add a dashboard widget with a custom form. In this form, users should be able to edit a list of strings (add, edit and remove items). Is there a WordPress API ...
0
votes
0answers
102 views

Show most popular posts widget which is unique for each author

There are lots of popular posts plugins and most of them offer widgets as well. but so far, I haven't found one that allows you to filter the popular posts based on the author. I want each author to ...
0
votes
2answers
246 views

register child class in another plugin

I think this should be relatively easy, but somehow I cannot figure out how to do this. essentially there's a preexisting plugin that does this: add_action('widgets_init', create_function('', ...
0
votes
2answers
106 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
154 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( ...
3
votes
2answers
93 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 ...
2
votes
2answers
183 views

I need some direction on how to have a sidebar based on meta rather than page

I'm working on a plugin that allows the user to create "page/post types", customize the type style, then tag a page/post with that type. All of this works. My problem is this plugin also needs to ...
1
vote
1answer
423 views

Adding widgets to header and footer from plugin

i created 4 header and 4 footer widgets using a site spesific plugin, the reason been that when i change themes, i keep all of my widgets. i created two files, one for the header widgets and one for ...
1
vote
1answer
28 views

Archive - same title for the first two posts

I created an archive page called archive.php Here I include header / footer and this code: <?php if (have_posts()) : while (have_posts()) : ?> <h1 class="entry-title"><a ...
-1
votes
1answer
178 views

Sidebar Slideshow widget with text

Can anyone suggest me some good sidebar slideshow widget? I need to add some text file along with each sides and show the image along with the text. ...
0
votes
1answer
394 views

How to create wordpress widget that is fixed position on the home page

I want to create a video plugin which is fixed on the home page when user scrolls. I know there is a wp_float plugin . But I want to try build new plugin
0
votes
1answer
167 views

Widget where it can make changes to the container

Is it possible to create a widget where it can make changes to the container? An example is like this: <!--- widget-container ---> <div class="wdget"> <div ...
1
vote
1answer
248 views

How do I use wp_editor() in widget form?

I'm trying to use the built-in Rich-text (wp_editor()) editor in Wordpress for my widget, but I can't seem to find any simple way to use it.. I know you can use it, as Black Studio TinyMCE can do ...
0
votes
2answers
522 views

Hide certain widgets from specific user roles in admin

I'm looking for a way to hide certain widgets from specific user types in the admin, Appearance > Widgets page? For instance, admins can see all widgets, but authors can only see a select few? I ...
0
votes
1answer
241 views

Plugin won't activate, fatal error (widget class not found)

I've been putting together a simple WordPress plugin that employs a sidebar widget and shortcode. One user has reported the following error when trying to activate the plugin on their local WP ...
0
votes
1answer
161 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
2k 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 ...
0
votes
1answer
46 views

Accessing widget information

I'm trying to access widget information saved in the wp_options table. I printed it out: add_filter('the_content', function(){ $res = get_option('widget_my_widget'); print_r($res); }); And ...
0
votes
1answer
94 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) ...
1
vote
0answers
625 views

How to create a 'single' category widget for woocommerce plugin

Woocommerce out of the box provides many widgets, however the category widget for providing a product search, groups ALL the categories into one widget. I want a widget for one category, i.e. 'shop ...