View Single Post
  #1  
Old January 19th, 2011, 11:40 PM
ayorofrance ayorofrance is offline
 
Join Date: Sep 2010
Posts: 430
Default 3 or 4 column category list

Hi Eric,

I would like to list all my top categories at the bottom of all category pages (and the front page).

This is not too difficult to do, however my category names are fairly short, so I'd like to go with 3 or 4 column...

I gave it a shot hacking the category list code as follows:
Code:
<h2>Our shop categories are:</h2>
<!-- Category List -->
[category.list id='dfcatcol1' before='<div class="cl">' after='</div>']
  <div class="cell col2">
    <div class="bdr">
      <a href="[category.link]" title="[category.name]">[category.name]</a>
      [category.list id='dfcatcol2' before='<div class="cl">' after='</div>']
        <div class="cell col3">
          <div class="bdr">
            <a href="[category.link]" title="[category.name]">[category.name]</a>
            [category.list id='dfcatcol3' before='<ul>' after='</ul>']
              <li>
                <a href="[category.link]" title="[category.name]">[category.name]</a>
                [category.repeat id='dfcatcol3']
              </li>
            [/category.list]
         </div>
       </div>
      [/category.list]
    </div>
  </div>
[/category.list]
<!-- /Category List -->
However that did not produce any good results...

Is there an easy way I can add extra columns?

Thanks!
__________________
WordPress Security - Is your WordPress secure? Get our FREE checklist and find out.

Easy-Email - Access ALL your email accounts with one login & synchronize automatically on all your computers.