• I am wondering if there is a maximum number of text widgets allowable? I am making a WordPress site at https://www.nationalanthems.info/wordpress and it is huge, about 400 separate pages (about 250 have been entered so far) and about 4-7 text widgets are required in the sidebar for each page. I haven’t had a problem with this so far, but now, after attempting to add my 1,778th text widget, it is not saving it, nor is it showing up on my page!

    Have I reached some kind of maximum? Is there anything I can do to rectify this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • I don’t believe that there’s any maximum on widgets (but someone that’s more i ntimate with the code base might be able to say different) so as far as I know it doesn’t sound like that’s the problem.

    I would like to make one suggestion though. If you need to use that many different text widgets, there’s obviosuly something or somethings that you’re trying to display for each page that’s similar, but a little bit different. If it was me doing it I’d look at how I could create my own widget that can look at the page that it’s on and dipslay what it needs to from that information. That way I could have a single sidebar and a single widget for each widget area, and not replicate them page after page after page… Having that may individual widgets would make it almost imposible if something ever needs to be updated.

    Thread Starter dhkendall

    (@dhkendall)

    I do use the Content Aware Sidebars plugin to help keep track of all of them.

    I do agree that what you suggested (creating a widget that can look at the page and display what it needs from that) is the best approach, but I’m not skilled at programming these things, and don’t know how to. If I knew that, it would probably be the best (and help fix a few other workarounds I had).

    Moderator keesiemeijer

    (@keesiemeijer)

    If you’re not a programmer you could try it with Custom Fields and this plugin: https://www.ads-software.com/extend/plugins/custom-field-widget/

    Use a custom field widget (in the order you want) for all the custom fields you want to display (Title, Composer, Lyricist, etc.. )
    It only shows the widgets in the sidebar of a page if the page has a custom field for those values.

    Thread Starter dhkendall

    (@dhkendall)

    That seems to work much better!

    My only problem now is getting the custom fields plugin to work with the collapse-o-matic plugin (that I use for the lyrics, you know, you click on it and it expands/collapses?) since it has a special code and not in html. (I’m guessing, though I haven’t tried it yet, that my blubrry powerpress code for the music files will ahve the same problem.)

    Moderator keesiemeijer

    (@keesiemeijer)

    Try it with this (very small) plugin that lets you use shortcodes in widgets: https://www.ads-software.com/extend/plugins/use-shortcodes-in-sidebar-widgets/

    Thread Starter dhkendall

    (@dhkendall)

    Hmmm, still doesn’t seem to work, I’ve been using the Blubrry and Collapse-o-matic shortcodes in text widgets before no problem, but even after I downloaded and activated that small plugin, there doesn’t seem to be a change

    Moderator keesiemeijer

    (@keesiemeijer)

    Go to wp-admin > Plugins > Editor. Select “Use Shortcodes in Sidebar Widgets” from the dropdown and change this line:

    add_filter('widget_text', 'do_shortcode');

    to this:

    add_filter('widget_text', 'do_shortcode');
    add_filter('custom_field_value', 'do_shortcode');

    And update the file.

    Thread Starter dhkendall

    (@dhkendall)

    Yup, that worked!

    Ideally I’d also like to make it so that I don’t have to type the entire Blubrry code each time (which is [powerpress url=”unique-filenamemp3″] as well as some custom text afterwards which is always the same) and rather just enter the unique filename in the custom fields app, but I don’t want to be seeming like asking a lot of things from everyone, I’m pleased with how it is currently!

    Moderator keesiemeijer

    (@keesiemeijer)

    It’s bad practice to alter plugin code as it can be upgraded in future. What you could do is create your own widget from the custom field widget. I don’t have time right now, but what is the format you want for your Blubrry code?

    Thread Starter dhkendall

    (@dhkendall)

    Well, the code is always the same, don’t have to alter it, but what I was thinking would be nice is the fact that for these the clubbry shortcode will be the same on all the pages except one little bit.

    For example, on one page, I’ll have to enter [powerpress url=”ca.mp3″] in the Custom Fields area to get it to display, another one I’ll have to enter [powerpress url=”in.mp3″], another [powerpress url=”de.mp3″], another [powerpress url=”no.mp3″] – you see, 99% of what I have to enter is the same, I was hoping there was a way I couldenter in just the variable part (the ca, or in, or de) in the custom fields area and have the rest taken care of.

    Again, no big deal, as I can just cut and paste it from others and change the relevant variable area, but a guy can dream. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Maximum number of text widgets? Cannot add any more!’ is closed to new replies.