• Using WordPress as a CMS…

    I’m wanting to have two separate page_list‘s in the same sidebar.php, each excluding the others pages–for example a list of Pages for Events and a list of Pages for the Organization itself. Is it possible to pass on a unique <li> id inside the page_list function in order for it to validate xhtml transitional?

    With both lists showing id="pagenav" at the same time, it fails xhtml validation. Here are the two tags in question:

    <?php wswwpx_fold_page_list('exclude=2,3,19,25,28&sort_column=menu_order&title_li=<h3>'.__('Events').'</h3>' ) ?>

    <?php wswwpx_fold_page_list('exclude=8,9,26,27&sort_column=menu_order&title_li=<h3>'.__('Organization').'</h3>' ) ?>

    Any help would be most appreciated, I tried searching but haven’t found a previous thread yet.

    ~Thayer

Viewing 1 replies (of 1 total)
  • Thread Starter thayerw

    (@thayerw)

    Duh, I figured it out… in case anyone else finds this topic of interest:

    Utilizing the Fold Page List plugin by Rob Schumann, I am using two separate wp_list_pages calls in the sidebar.php in order to display two separate organization menus, each with its own set of excludes. The page wasn’t validating because the fold_page_list.php inserts an id for each page list called “pagenav”. I fixed it by simply changing the id to a class instead:

    $output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';

    That should’ve been obvious, but for whatever reason it wasn’t. I hope this can help someone else in the future.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to use wswwpx_fold_page_list twice with separate ID for CSS formatting?’ is closed to new replies.