Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

According to this threadthis thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints or returns a string.

If you set $args['echo'] to false, you can do some string manipulation before you echo() it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints or returns a string.

If you set $args['echo'] to false, you can do some string manipulation before you echo() it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints or returns a string.

If you set $args['echo'] to false, you can do some string manipulation before you echo() it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints (oror returns) a string.

If you set $args['echo']$args['echo'] to falsefalse, you can do some string manipulation before you echoecho() it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints (or returns) a string.

If you set $args['echo'] to false, you can do some string manipulation before you echo it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints or returns a string.

If you set $args['echo'] to false, you can do some string manipulation before you echo() it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.

Source Link
Pat J
  • 12.3k
  • 2
  • 28
  • 36

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that's the way to go, since wp_list_pages() prints (or returns) a string.

If you set $args['echo'] to false, you can do some string manipulation before you echo it, but it seems to me that the Walker solution is probably the way to go.

Unfortunately the Walker documentation looks a little thin.