Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter dondiego2007

    (@dondiego2007)

    no one knows how to change this default range of values from 1 to 9?

    First I’ve seen of this thread. A quick glance through the widget.php file shows two places where the text widget count is double checked to make sure no more than 9 are displayed. I would think changing that to a high number would do it.

    Thread Starter dondiego2007

    (@dondiego2007)

    there are a few places where number ‘9’ is shown in wp-includes/widget.php:

    function wp_widget_rss_setup() {
    line 878, if ( $number > 9 ) $number = 9;

    function wp_widget_rss_register() {
    line 909, if ( $number > 9 ) $number = 9;
    line 912, for ($i = 1; $i <= 9; $i++) {

    even if I change ‘9’ with ‘999’ nothing changes in the scroll-down-menu from presentation -> widget -> rss feed widgets…

    may be I’m wrong, if you read this, please give me some suggestion more.

    tks in advance drmike

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    In wp_widget_rss_page():

    for ( $i = 1; $i < 10; ++$i )

    Up the number 10 to the same number as your widgets +1. So 999 would have a 1000 here.

    But why on earth do you need more than 9 RSS widgets? That’s slightly insane. It’s also going to make the code *really* slow, as it tries to register all those widgets. You need to keep the number low. No higher than 20 or so. 30 is pushing it.

    Thread Starter dondiego2007

    (@dondiego2007)

    great, it works! tks so much…

    here comes another ‘related’ question:
    may I show certain widgets ONLY in certain categories?

    Otto, we get the request a couple times a week on wp.com land. Well for text widgets at least.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    drmike: I know, but anybody needing more than 9 text widgets need to rethink their sidebar scheme, IMO. They’re putting too much in there.

    Agreed but maybe they’re Eight is Enough and Brady Bunch fans and want a widget for each child. ??

    You should see the number of folks over at wp.com and in my own Mu install that put in each and every single widget into their sidebar.

    I think following link would give up a better step-by-step instruction on how can I have more then ‘9’ widget copies?

    https://erudite.110mb.com/text-widgets-more-than-9-wordpress-sidebar/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how can I have more then ‘9’ widget copies?’ is closed to new replies.