Title: Widget Requests
Last modified: August 18, 2016

---

# Widget Requests

 *  [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * (@mythusmage)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/)
 * 1. A script widget. A widget one can use to install a script or scripts in a 
   sidebar with widgets installed in it. This including scripts for plug-ins that
   use such.
 * 2. Alter the text widget option on the widget configuration page in Presentations
   so the admin can enter a number, instead of choosing from a list of number that
   could prove a bit too limited. (Believe me, somebody’s going to find a use for
   more than 9 text widgets.)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-378583)
 * RE: #1 -> [http://widgets.wordpress.com/2006/04/10/execphp/](http://widgets.wordpress.com/2006/04/10/execphp/)
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-378993)
 * Re: #2 -> Just edit the widgets.php file to make the possible number higher.
 * -In widget_text_setup(), change the number 9 to a higher number in the “if” check
   and assignment.
    -In widget_text_register(), same change for the if check and
   assignment, and also change the 9 in the for loop to the same higher number. -
   In widget_text_page(), change the number 10 to be the same higher number plus
   one. So if you are upping the possible number of items to, say, 20, then you’d
   put 21 here.
 * That’s all there is to it. It’s a trivially simple hack, really.
 *  [headlessspider](https://wordpress.org/support/users/headlessspider/)
 * (@headlessspider)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379012)
 * i’ve been looking for something link conditional widgets. this widget appears
   in the home, that widget appears in the home and the archive, and that widget
   appears only in a single post…
 * i think this would be done in the widgets.php itself…
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379019)
 * Nah, you can do it without any plugin core editing.
 * Just take whatever widget you want to customize and only have it return data 
   for the pages you want using the standard conditional tags.
 * It’ll be active on all pages, but it’ll only display something on the pages you
   want.
 *  [headlessspider](https://wordpress.org/support/users/headlessspider/)
 * (@headlessspider)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379021)
 * i get what you mean. what i see in my head is i want to have text3 display only
   on home page as well as the rss widget. i don’t want to have them display in 
   the single pages or the archive pages.
 * but your suggestion is also interesting. when you said,
    “have it return data
   for the pages you want using the standard conditional tags” do you mean i can
   have php code inside which can conditionally display this or that depending on
   the page…?
 * hmmm… which means that there’s this widget (phpexec or execphp or something) 
   that can have php code run in a text box….
 * but what about the title of the widget?
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379022)
 * You’d have to make a custom widget and at the beginning of the function, check
   to see if it’s a page you want or not. If not, stop there and don’t output anything.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379029)
 * You could do it with the ExecPHP widget, but yes, the Title is a problem. Short
   of making a custom widget, I’m not sure of any good way to do it.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379032)
 * Actually, you could use two ExecPHP widgets to do it. It’s a bit of an ugly hack
   though.
 * Put one PHP widget above the widget you want to be conditional, and another below
   it. The PHP in the top one will be:
    `if (!show_condition) { echo "<!--"; }` 
   The one below the widget you’re hiding will be similar: `if (!show_condition){
   echo "-->"; }`
 * Basically it comments out the surrounded widget entirely if show_condition is
   false. So you have to check the conditions you want to show the widget both times
   by replacing show_condition, of course.
 * Not the best solution, admittedly, but it might work on some sites until somebody
   comes up with a better way.
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379035)
 * Bah, I’ll just make a configurable conditional widget next week when I have some
   free time. 😛
 *  [headlessspider](https://wordpress.org/support/users/headlessspider/)
 * (@headlessspider)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379036)
 * 8D. thanks!
 * i’ll try to look into the code and see how i can mess it up…

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Widget Requests’ is closed to new replies.

## Tags

 * [requests](https://wordpress.org/support/topic-tag/requests/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 10 replies
 * 4 participants
 * Last reply from: [headlessspider](https://wordpress.org/support/users/headlessspider/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/widget-requests/#post-379036)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
