I am using a WP theme that includes the semantic grid.
For example, if I want to create 3 responsive columns I can use the following markup in a post or page:
<div class="grid-33">
Column 1
</div>
<div class="grid-33">
Column 2
</div>
<div class="grid-33">
Column 3
</div>
I am using php to grab and display a list of term links from a custom taxonomy I am using with Woocommerce. It works nicely to create a list. The problem is that the list is very long.
The echo section of the php is as follows:
echo "<h1 class='vendor-title'>MY TITLE</h1>";
echo "<p class='vendor-subtext'>My subtext.</p>";
echo "<ul class='vendor-list'>";
foreach ( $terms as $term ) {
echo '<li><a href="' . get_term_link( $term ) .'">' . $term->name . '</a></li>';
}
echo "</ul>";
What I want to do is to format the PHP so that the resulting list is displayed in 3 responsive columns using semantic grid-33 class divs.
How can I code this?