Support » Plugins » Display page list not as list?

  • Is there any way to generate links to the pages of a WP site, but not have them generated as a list?

    I’ve been trying to use ‘<?php wp_list_pages(); ?>’ and adding different arguments, but it always generates the links as a list.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I discuss one way of doing that in the following thread:

    Thanks very much Kafkaesqui. That worked perfectly. 😀

    Could I press you for some more help with generating other navigation links? 🙂

    How would I go about doing the same thing for wp_get_links , wp_list_cats & wp_get_archives ?

    I tried a few variations of your code like so:

    $cat = wp_list_cats('echo=0');
    $cat = str_replace('<li>', '<div class="subItem">', $cat);
    $cat = str_replace('</li>', '</div>', $cat);
    echo $cat;

    But it didn’t work.

    I looked through the code in some of the functions pages in the wp-includes folder to try and shed some light on how the code for the tags are generated, but I’m still pretty new to php & it didn’t make much sense to me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display page list not as list?’ is closed to new replies.