• I’m setting up a WordPress site for a resource site (I’m not a WP newbie, don’t worry), and I was wondering how we could make existing plugins work with the new widgets.

    I’m using a “hide pages” sidebar plugin, where you can manually pick which pages show up in the sidebar. In that, you replace wp_list_pages() with sps_list_pages(). However, because the widgets plugin totally modifies the coding of the sidebar, I can’t for the life of me find anywhere to replace this code. I found the “pages” section of plugins/widgets/widgets.php, but it uses totally different coding to achieve the same thing.

    Is there any way they can work together? Or do I have to choose one or the other?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter melilyn

    (@melilyn)

    … this is still a problem, and I had to dig it out of page seven or so…

    I wonder if the King Links widget would help? It appears capable of some pretty interesting things.

    https://www.blog.mediaprojekte.de/cms-systeme/wordpress-plugins/wordpress-widget-king-links/

    [edit: doh, maybe not. sorry, was thinking it was for pages, not links.]

    Thread Starter melilyn

    (@melilyn)

    Okay, let’s get rid of the plugin idea. I dug into template tags and discovered how to add something to the <?php wp_list_pages(); ?> (depth=1) to have it only display the parent pages. Is there a way I can add THIS to the widget?

    OylerActionPhotos

    (@oyleractionphotos)

    Don’t know if you ever found an answer but on line 684 of the widgets.php file, change it to wp_list_pages("depth=1&sort_column=menu_order&title_li=");

    I’m trying to figure out how to add a home link to the pages widget and while searching for an answer came across your question…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widgets with sidebar/page plugins’ is closed to new replies.