Forums

[Plugin: Simple Sidebar Navigation] Thanks! (17 posts)

  1. equitydomain
    Member
    Posted 7 months ago #

    Just what I've been looking for - thank you! Just installed it, seems to work like a charm.

    http://wordpress.org/extend/plugins/simple-sidebar-navigation/

  2. maxchirkov
    Member
    Posted 7 months ago #

    Thanks, glad you find it useful! :)

  3. spottydog
    Member
    Posted 7 months ago #

    Hi there.
    Just having a small problem with the widget.
    I have created multiple posts that are linked to a category each.
    Simple Sidebar Navigation will only see 5 of them at a time.
    If I add a new one, it removes an old one, keeping a total of 5.
    It can however see all 4 pages that have been created.
    Any ideas anyone?

  4. maxchirkov
    Member
    Posted 7 months ago #

    Hey spottydog,

    I'd like to help, but I don't follow your explanation. Can you be more specific what exactly you're trying to do? BTW, the widget doesn't have ability to add categories and automatically populate them with links to their posts. It only adds static links of your selection at the time of editing.

  5. spottydog
    Member
    Posted 7 months ago #

    Hi Max.
    I'll try to explain it a bit better, please bear with me.
    I have created a number of posts and assigned a different category to each post. There are 9 in total at the moment, and I have also created 4 pages.
    The Simple Sidebar Navigation widget shows only 5 of these 9 posts and all 4 pages.
    If I re-create one of the posts and assign a category, it will recognize it, but it removes one of the old ones.
    I can send you a screen capture of the various screens if that will help.

    Regards
    Iain Kennedy

  6. maxchirkov
    Member
    Posted 7 months ago #

    Iain, I figured out the problem. By default the function get_posts() fetches 5 posts only. By adding argument get_posts('numberposts=-1') it fetches all published posts. So, you can run search and replace through the plugin file (there are only 3 places where this function is used), or you can wait until I release an update. Some people reporting another error and I'll see if I can fix that and release it all together.

  7. spottydog
    Member
    Posted 7 months ago #

    Hi Max.
    That fixed it.
    Thanks very much for looking into that for me.

    Regards
    Iain Kennedy

  8. maxchirkov
    Member
    Posted 7 months ago #

    No problem - glad it helped.

  9. spottydog
    Member
    Posted 6 months ago #

    Hi Max.
    FYI, the auto update that just came in changed the "get_posts('numberposts=-1')" back to "get_posts()".
    Just letting you know because I thought the next update was going to include get_posts('numberposts=-1') instead.

    Regards
    Iain Kennedy

  10. maxchirkov
    Member
    Posted 6 months ago #

    Oops. That's what happens when you're trying to fix things at work during lunch time, while mostly doing everything from home :) Thanks for catching!

  11. spottydog
    Member
    Posted 6 months ago #

    No problem Max.
    Another question for you.
    Would it be possible to have the capacity to have 2 (or more even) Simple Sidebar Navigation widgets used at the same time?
    ie. add the widget more than once, the same as you can do with the "Text" widget.
    I would like the ability to split up the navigation into multiple sections. eg:

    Navigation1
    Page 1
    Page 2
    Page 3

    Navigation2
    Page 4
    Page 5
    Page 6

    Navigation3
    Page 7
    Page 8
    Page 9

    Regards
    Iain

  12. maxchirkov
    Member
    Posted 6 months ago #

    Iain, you can add as many widgets as you wish to your sidebars. Scroll to the bottom of the page to create desired number of widgets.

  13. spottydog
    Member
    Posted 6 months ago #

    Oops.
    Now I feel dumb.
    Sorry about.

    Thanks
    Iain

  14. spottydog
    Member
    Posted 6 months ago #

    Uh Oh.
    When I added the second widget I get all this error code appearing now

    PHP Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /s101/home4/spottydog/wordpress-2.7.1/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php on line 185 PHP Stack trace: PHP 1. {main}() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/widgets.php:0 PHP 2. wp_list_widgets() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/widgets.php:279 PHP 3. call_user_func_array() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:68 PHP 4. wp_widget_control() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:0 PHP 5. call_user_func_array() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:296 PHP 6. simple_sidenav_control() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:0 PHP 7. simple_sidenav_parse_options() /s101/home4/spottydog/wordpress-2.7.1/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php:306 PHP 8. array_key_exists() /s101/home4/spottydog/wordpress-2.7.1/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php:185 PHP Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /s101/home4/spottydog/wordpress-2.7.1/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php on line 188 PHP Stack trace: PHP 1. {main}() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/widgets.php:0 PHP 2. wp_list_widgets() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/widgets.php:279 PHP 3. call_user_func_array() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:68 PHP 4. wp_widget_control() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:0 PHP 5. call_user_func_array() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:296 PHP 6. simple_sidenav_control() /s101/home4/spottydog/wordpress-2.7.1/wp-admin/includes/widgets.php:0 PHP 7. simple_sidenav_parse_options() /s101/home4/spottydog/wordpress-2.7.1/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php:306 PHP 8. array_key_exists() /s101/home4/spottydog/wordpress-2.7.1/wp-content/plugins/simple-sidebar-navigation/simple-sidenav.php:188

  15. maxchirkov
    Member
    Posted 6 months ago #

    Can you try downloading the 2.0.8 from my site

  16. spottydog
    Member
    Posted 6 months ago #

    Same thing happens.

  17. maxchirkov
    Member
    Posted 6 months ago #

    I hate when this happens and I can't reproduce the error.

    Does the error appear in the backend, or front end of the site? I only was able to get a similar error on the front end if I added a blank widget. So, I added a condition to output nothing if there was no links. You can download the file again (I left the same version, but it's updated).

    If you want, you can email me directly at editor@ibsteam.net - if there is a chance I could access your site, I probably could do a better job figuring things out.

Reply

You must log in to post.

About this Topic