I have some code that generates a sidebar menu on my Wordpress site as below...
<ul>
<?php
if($post->post_parent)
$children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=1");
else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=1");
if ($children) { ?>
<?php echo $children; ?>
</div>
<?php } ?>
</ul>
This outputs code in the following way...
<ul>
<li class="page_item page-item-94 current_page_item"><a href="#">Menu Item</a></li>
</ul>
The problem is, I need it to use my Bootstrap 3 styles and output the list as below...
<div class="list-group submenu">
<a href="#" class="list-group-item">Menu Item</a>
</div>
Basically I need to add the class of list-group-item to the a tag in the output list items. Is that at all possible?