Tagged Questions
0
votes
1answer
31 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
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
42 views
Is it possible to dynamically add widget areas?
I am creating a very custom and unique theme that uses posts as sections for the front page. The posts all have a configured style to them, so I am wondering if it is possible to dynamically create ...
2
votes
2answers
113 views
javaScript in <head> section of WP API
How do I place the following javaScript in the <head> section of the Wordpress Widgets API menu screen?
<script type="text/javascript">
jQuery(window).load(function() {
...
0
votes
0answers
24 views
Widget options disappear when dragged to widget areas
When dragging a widget to a sidebar, it gets added, the throbber spins for a second and then all of the options within the widget disappear. So, the frame for the widget is there, but it's just empty. ...
0
votes
1answer
100 views
Widget update function not saving values
Hello WordPress Answers!
I'm having trouble with the widget update function saving values correctly, but first let me explain the situation.
I'm writing a simple news ticker widget plugin, which ...
0
votes
1answer
65 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 ...
1
vote
1answer
96 views
Dashboard widget custom positioning?
I cannot figure out how to arrange my custom widgets one left and one right.
I'm using this code to create custom widgets:
//Add my comments. Shows user his last 5 comments
function ...
1
vote
1answer
44 views
Want to be able to sign up subscribers as authors
I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
1
vote
2answers
63 views
How do you Permanently Delete Sidebars
I'm developing a custom theme and I added some widgetized sidebars like so:
register_sidebars(2, array('name'=>'Foobar %d'));
I then recreated them so that I could give them semantic names. Like ...
0
votes
1answer
60 views
Give a function a unique ID
I'm developing a theme that uses a Twitter Tweets custom widget (Not coded by me). There are several widget areas within the theme and if I try and include the Twitter widget in say the sidebar and ...
2
votes
1answer
213 views
How to generate and display widgets areas dynamically?
I want display different content in sidebar for every category, but as I create new ones I have to create the area for it. How can I have widget areas for every category and also display them on theme ...
0
votes
3answers
2k views
remove <div class=“textwidget”> from text-widget
When you add a text widget to a sidebar in Wordpress the widget includes this code
<div class="textwidget">
How do I remove this without editing the core?
FYI - I think this line is located ...
2
votes
2answers
219 views
What is the most efficient method for loading widgets in functions.php
I have seen WordPress developers use two different methods for loading custom widgets from the functions.php file.
The first:
include("functions/my-custom-widget.php");
The second:
...
0
votes
1answer
227 views
Reloading dashboard widgets page erases widgets (bug?) [closed]
In the widgets section, on the right-hand side where it lists all the sidebars, if I drag a text widget over (or any widget) and add "Test" on the title and "test" on the body and then save, it will ...
5
votes
1answer
639 views
What is the difference between wp_register_sidebar_widget and register_widget?
What's the difference between them and when should we use each one ?
I'm using wp_register_sidebar_widget right now and it's working fine but I've seen a lot of tutorials online on how to create a ...
0
votes
1answer
488 views
Simple Widget plugin update function in WP_Widget not working [closed]
I've been following along a Lynda.com tutorial on plugin development and copied the plugin in the video to get an understanding of how they work. When I try to save the simple widget which basically ...
3
votes
2answers
996 views
Need to create a Theme demo site that features multiple themes
I would like to create a site like: http://demo2.woothemes.com/?name=sentient for my clients, so that they can see the range of themes I offer. I own many templates from different providers, and ...
5
votes
2answers
967 views
How can I get $id variable in widget's form function?
How can I get $id variable in widget's form function?
According to widget's structure I see that widget function have $args as a parameter, which will be extracted in function's body. In my case i ...
0
votes
1answer
101 views
Code in custom widget queries all posts, when it should only query the current post
I have a query in a custom widget (my first one!) which, if it's of custom post type book, retrieves the post ID. This then gets used in a WP_QUERY to retrieve data about the page.
This works ...
8
votes
2answers
3k views
Between functions.php, widgets and plugins, which is loaded first?
Customer asks if a specific carousel plugin he uses can be widgetized. That means i should create a widget inside functions.php which calls the plugin's function. That means that the plugin's code has ...
0
votes
1answer
298 views
Add a custom function to widget code
Hopefully, this is an easy question - I'm just a bit confused.
I've got a custom widget with the usual structure:
class My_Widget extends WP_Widget {
function My_Widget() {
// widget actual ...
1
vote
1answer
177 views
Custom random quote widget breaks when used in multiple sidebars
I've created a custom widget and placed it in functions.php. You can see the widget here:
http://pastebin.com/3uWpeaFx
(I've also created a similar widget that grabs a random image; it's included ...
1
vote
1answer
942 views
Missing argument 3 for wp_register_sidebar_widget()
I installed the Deprecated Calls plugin and it's telling me to change register_sidebar_widget() and register_widget_control(), essentially add wp_ first.
I did but I'm getting Missing argument 3 for ...
1
vote
1answer
338 views
How to pass data from page to widget functions?
I need help,need to pass data from page,to widget function,I need to pass author id to widget,any idea?
Tnx
