Mike Waller
asked on
display output in two columns on page
I have the following php code that displays all my members in a single column down the page. Is it possible to place those members into two columns on the page?
<?php
foreach (get_users ("role=s2member_level1") as $user)
{
$user = new WP_User ($user->ID);
echo "\n" . do_shortcode("[show_avatar id=$user->ID avatar_size=120]", $user->ID) . "\n" . "<strong>Name:</strong> " . get_user_field ("display_name", $user->ID) . "\n" . "<strong>Age:</strong> " . get_user_field ("age", $user->ID) . "\n" . "<strong>About Me:</strong> " . get_user_field ("about_me", $user->ID) . "\n";
}
?>
<?php
foreach (get_users ("role=s2member_level1") as $user)
{
$user = new WP_User ($user->ID);
echo "\n" . do_shortcode("[show_avatar
}
?>
Yes it is possible. Here is a reference: http://www.qualitycodes.com/tutorial.php?articleid=33&title=Displaying-Records-in-Multiple-Columns-Using-PHP
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! Thanks!