[Plugin: Category Custom Fields] Call in get_categories
-
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 ‘- term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.’‘;
echo ‘ – (‘ . $category->count . ‘) – ‘ . $category->description . ‘
‘; }
?>
<!–#homeCatNav–>’I would love to use this plug in to add a bit of custom info to each of these categories.
- term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $category->name ) . ‘” ‘ . ‘>’ . $category->name.’‘;
The topic ‘[Plugin: Category Custom Fields] Call in get_categories’ is closed to new replies.