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

learn more… | top users | synonyms (1)

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 ...
0
votes
0answers
24 views

Adding custom widgets to theme sidebar on activation

I have a custom widget in my theme with the id of "widget_my_box_menu" and I'm trying to add that widget to my theme's main sidebar on theme activation. The main sidebar's id is "home-sidebar-widget" ...
0
votes
1answer
24 views

call sidebar from file

i need to call a sidebar into my header. i switched to the new twenty twelve theme and created my own child theme. With this new theme i decided to keep things organised and together, so i put my ...
0
votes
1answer
42 views

wordpress widget missing jquery

I have live score website and it is not wordpress based i build a widget for pure php websites but now i want to offer the widget to wordpress users problem is when i tried the widget i get three ...
0
votes
0answers
28 views

List.js inside WordPress widget

I am trying to implement list.js (http://listjs.com/) inside my WordPress widget, so far with no success. At first I have tried it in a simple index.html file outside the WordPress environment just ...
0
votes
0answers
17 views

Hide Widgets depending on Custom Field Value

I have Wp-Types Toolset as my WP building blocks and with it I created a Custom Field Group called Featured Listings. Within the group I have a field called Featured Ads and that has Radio Button ...
-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 ...
3
votes
2answers
113 views

How to add color picker to widgets?

I have some problems adding the wpColorPicker to a Widget. Does anyone have a working sample? It only works when I click on 'Save' or reload the page, but when I drag a new widget to the area it will ...
0
votes
1answer
27 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 ...
2
votes
1answer
156 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 ...
0
votes
0answers
36 views

Avoid duplicate posts from sidebar widget on homepage?

In a normal dynamic sidebar of a theme's homepage template the sidebar widgets display lots of duplicate posts on the front page. It shows "recent posts" and posts from certain categories in main ...
0
votes
1answer
91 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 ...
2
votes
1answer
30 views

Trying to wrap <span> around first word of multiple word strings with a widget_title() filter, only works on two word strings and not more than two

I am trying to wrap a around the first word of multiple word widget titles. I have used the answer from here: ...
0
votes
1answer
28 views

How to remove calendar widget?

I just want to remove calendar widget from the dashboard. How can I do that?
0
votes
0answers
28 views

Get Related Posts (custom post type) of Custom Taxonomy, Most to Least?

I'm working on an image page feature which retrieves the MOST related posts ("image" custom post type). So images with most terms in common should be listed first. But this does not seem to be ...
0
votes
0answers
29 views

How to select more than one date from calendar [closed]

i m using jQuery UI Widgets plugin to select date from the jquery calendar but it only allow to select only singledate. i want to select more than one date in calendar .can anyone help me how to do ...
0
votes
0answers
10 views

Reuse form function of widget in an option page

Can I reuse the form function of a widget in an option page to use it to store default values for the widget and its shortcode?
2
votes
2answers
41 views

How to delete cached transients from a widget instance properly?

So I have created this widget which pulls a number of posts. And the query is being cached via transients. But I need the transient to be deleted whenever a post is saved so the query can be ...
0
votes
0answers
21 views

wordpress pages sidebar widget missing on homepage

http://www.dual-diagnosis.org.uk/ The Sidebar widget with my links in on the right is missing from the home page, it appears everywhere else just not here, any ideas?
3
votes
1answer
57 views

Should I use set_transient or update_option?

I want to store some Twitter API data in WordPress. After every hour, I want to fetch new data from Twitter, and update only if the data is successfully retrieved from API (sometimes the API gives ...
0
votes
0answers
23 views

Adding a widget breaks my child theme - *But I'm not calling any widgets!*

I'm trying to design a child theme, based off of twentytwelve, and I'm running into a puzzle I can't even figure out how to troubleshoot. Basically, my theme explodes when I enable any widgets. It ...
2
votes
1answer
55 views

How to store widget fields data as an array?

I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
0
votes
0answers
41 views

Wallpress responsive page element with widgets

Recently, I use a free responsive themes from designwall.com named wallpress (http://www.designwall.com/wordpress-theme/wallpress/). I'm a wordpress beginner, so there are several stuffs I still ...
0
votes
0answers
36 views

PHP script working in PHP page but not PHP widget [closed]

I have this code : <html> <form method="post" action=""> <div align="center"> <p><b> What to see if the server is online rite now just add the server Address and Port ...
0
votes
1answer
70 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
0answers
60 views

Widgets not restored from backup

I've done a little searching here to try to find what I need but most people seem to have these issues when they're moving a site or changing the sql. I'm doing neither so I can't figure out why ...
0
votes
0answers
23 views

Copy Widget Settings because of changed IDs

I want to update a customers blog to a child theme that is based on a newer version of the actual deployed theme. My problem is, the developers of the theme changed the IDs of sidebars. In the old ...
1
vote
1answer
74 views

How to insert widget areas specific to certain pages (or posts, etc.)?

I am developing a theme the pages of which (as well as posts) are so different from the home page that I want different widgets on their sidebars.Is there a way to do it? I'm calling the sidebar on ...
0
votes
0answers
27 views

Move Widget Meta Box From Appearance to Pages

Is it possible to relocate the widget/sidebar meta boxes that normally appear at Appearance > Widgets so that they appear as a meta box on a specific page's Page Edit dashboard page? Here's what ...
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
46 views

I need to create a dashboard widget with input field and will display the text as shortcodes in posts

Hi I need to make automated price updater of my learning materials (e-books, videos, posters etc.) and it's such a drag every time I need to change prices on them to open every single posts because ...
0
votes
0answers
20 views

Widget Management/Sidebar Strategy for CMS sites

I've been mulling of this question for a while and try out different approaches for each site: What is a flexible approach to managing widgets on a CMS sidebar that is easy to use and maintain as well ...
0
votes
1answer
43 views

accessing wordpress serialized data outside wp

I've never worked with serialized data... I need a little help with how to load "text" widgets title and content in php script outside wordpress... my script just connects to database (including ...
0
votes
1answer
139 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
2answers
85 views

Remove “Content” and “Discussion” from Right Now Dashboard Widget

How do I hide "Content" and "Discussion" element in the "Right Now" dashboard widget? Here's a screenshot:
0
votes
0answers
27 views

Any way to duplicate an entire sidebar?

I was an early adopter of Wordpress, in 2004. It has come a long way, but the Widgets admin panel has not. I have to make multiple (maybe 20-30+) sidebars for one site, and so I'm facing the prospect ...
7
votes
3answers
335 views

How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?

I've inserted a WP 3.5 media uploader into a widget by running this JavaScript when a button is clicked on: var frame = wp.media( { title : 'Widget Uploader', multiple : false, ...
0
votes
0answers
47 views

Widget won't show up on the front end

I have a question very similar to one I recently posted, where instead of the widget not showing up at all, it now shows up in the admin area, you can drag it, and any other widget over to the sidebar ...
0
votes
0answers
33 views

custom siderbar with custom cat post widget does not include content

I am trying to make a template with a left sidebar. In that sidebar I want to insert custom cat post query using a text widget so I can format it correctly the way I want. However when I do The ...
0
votes
2answers
40 views

My widget won't show up [closed]

I have built a widget class such as (using pear naming standards): class CoreTheme_Adminpanel_Widgets_Download extends WP_Widget{ function CoreTheme_Adminpanel_Widgets_Download(){ ...
1
vote
1answer
15 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
95 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
87 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
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
2answers
145 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 ...
0
votes
0answers
17 views

Sidebar If Query

I have this query which I'm using in the sidebar, but when I place it in a php widget, the whole sidebar disappears... Any ideas? global $wp_query; $postid = $wp_query->post->ID; if ( ! empty( ...
1
vote
1answer
47 views

How do I rebind event after widget save

I am writing a widget who's form elements have a click event attached to. I bind it using jQuery. However, after clicking save, the bindings gets lost. That is, clicking those elements doesn't ...
1
vote
1answer
57 views

RSS dashboard widget not showing visuals

I am using a RSS feeds widget on my dashboard as shown in this Q&A. Problem is feeds doesn't show up any visual like images or videos. I verified this by looking raw feeds which I used. Here is a ...
2
votes
2answers
102 views

Different rss feeds in a single dashboard widget

I am using this snip of code to get rss feed on my dashboard as widget. It becomes problematic when it displays 5-6 different rss feeds which makes me run down deep. How can I add 6 different feeds ...

1 2 3 4 5 16