WordPress.org

Forums

Category Custom Fields
Call in get_categories (1 post)

  1. Fitz Ryland
    Member
    Posted 4 years ago #

    I am trying to add some custom field data to my categories list, but I am not too sure how to do that. This is my category navigation so far:

    '<ul id="homeCatNav">
    <?php
    $args=array();
    $categories=get_categories($args);
    foreach($categories as $category) {
    echo '

  2. term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'';
    echo ' - (' . $category->count . ') - ' . $category->description . '
  3. '; }
    ?>
    <!--#homeCatNav-->'

    I would love to use this plug in to add a bit of custom info to each of these categories.

    http://wordpress.org/extend/plugins/categorycustomfields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags