• I have a field for my categories called “cf_produkter_kategorier_mini_thumb”. I need to display it in the wordpress categories list. Here’s what i’m using…

    <?php
    //list terms in a given taxonomy (useful as a widget for twentyten)
    $taxonomy = 'category';
    $tax_terms = get_terms($taxonomy);
    ?>
    <ul>
    <?php
    foreach ($tax_terms as $tax_term) {
    echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>';
    }
    ?>
    </ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom field value in category list’ is closed to new replies.