Connect with us

Cult

Simple double listed columns

Published

on

DISCLAIMER: this post is older than one year and may not be up to date with the latest WordPress version.

The standard wp_list_categories() function echoes a list of all your categories. Let’s see how we can quickly force the display of categories on two columns.

Simply paste the following piece of code where you’d like your categories to be displayed:

<?php
$cats = explode("<br />",wp_list_categories('title_li=&echo=0&depth=1&style=none'));
$cat_n = count($cats) - 1;
for ($i=0;$i<$cat_n;$i++):
if ($i<$cat_n/2):
$cat_left = $cat_left.'<li>'.$cats[$i].'</li>';
elseif ($i>=$cat_n/2):
$cat_right = $cat_right.'<li>'.$cats[$i].'</li>';
endif;
endfor;
?>
<ul class="left">
<?php echo $cat_left;?>
</ul>
<ul class="right">
<?php echo $cat_right;?>
</ul>

Then, just save the file, and enjoy!

Credits go to Blog Oh Blog for this awesome recipe!

Cult

QuickOnlineTips: WordPress 2.7 Alike

Published

on

I read an article at Quick Online Tips, about how to integrate the functions of WordPress 2.7, but keep the legacy 2.6.x or below.

Continue Reading

Cult

WPZoom: 20 WordPress Rockstars

Published

on

I was just cruising the web when I can across this post. Thanks to WPZoom for a truly in depth look at some great playing in out community.

Continue Reading

Cult

Site Theme Update

Published

on

By

Hello everyone, it’s been a long time since my last post.  First of all the theme of the site will still involve a lot to do with wordpress, only I think it’s just easier for me to expand the site into new areas.  Since I rarely find time to write and when I do, I find even less to write about.  Especially when I am stuck on just one subject, so from here on out this site will include Code, Design, SEO, Themes, Online Money Making, Security, Plugins, Themes, Networking, Marketing, Advertising and whatever comes to mind that has to do with Online.

Now I would love to hear from the readers of this site. Let me know what you think.  Should this stay on subject or expand.

Also I would love to hear from all visitors and readers on what is your job online.

 

 

 

Are you a webmaster?

Are you a Programmer?

 

Are you a Graphics Artist?

 

Are you a Professional SEOer?

 

Are you a Marketer?

 

Are you a Writer?

 

Are you an Advertiser?

 

Are you a Networker?

 

Do you design Websites?

 

Make Themes?

 

Continue Reading

Trending