Hey, complete newbie here! I use the code below to list my subpages on specific page. However I would like to display the list in two columns.
<?php
global $wp_query;
if( empty($wp_query->post->post_parent) )
{
$parent = $wp_query->post->ID;
}
else
{
$parent = $wp_query->post->post_parent;
}
?>
<?php if(wp_list_pages("title_li=&child_of=$parent&echo=0" )): ?>
<div id="submenu1">
<ul>
<?php wp_list_pages("title_li=&child_of=$parent" ); ?>
</ul>
</div>
<?php endif; ?>
I have tried to use CSS to float it into two columns, but I get the following outcome:
Page title A Page title B
Page title C Page title D
Page title E Page title F
So I’m hoping someone can help tweak the code so is display in two columns and with the follow order:
Page title A Page title D
Page title B Page title E
Page title C Page title F
Any help would be much appreciated!