Support » Fixing WordPress » Custom category Display

  • Is there a way to do a loop just for categories?

    I want to show the categories on the front page and thats it.

    I want to show a category image, the category description and link and some more stuff. For every category. Maybe five or six.

    Thank you so much for any help on this!

Viewing 1 replies (of 1 total)
  • I am doing this old school ghetto style, which might be the only way it can be done?

    $custocats = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
    foreach ($custocats as $custocat) {
    echo "<a href=\"/archives/category/$custocat->category_nicename\">$custocat->cat_name</a> - ";
    	echo $custocat->category_description;
    echo "<br/>";
Viewing 1 replies (of 1 total)
  • The topic ‘Custom category Display’ is closed to new replies.