WordPress.org

Support

Support » Plugins and Hacks » Meteor Slides » [Resolved] [Plugin: Meteor Slides] How to display Slideshow category description in front page?

[Resolved] [Plugin: Meteor Slides] How to display Slideshow category description in front page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php
    //list terms in a given taxonomy (useful as a widget for twentyten)
    $taxonomy = 'slideshow';
    $orderby = 'slug';
    $show_count = 0; // 1 for yes, 0 for no
    $pad_counts = 0; // 1 for yes, 0 for no
    $hierarchical = 0; // 1 for yes, 0 for no;
    $title = '';
    $args = array(
      'orderby' => $orderby,
      'show_count' => $show_count,
      'pad_counts' => $pad_counts,
      'hierarchical' => $hierarchical,
      'taxonomy' => $taxonomy,
      'title_li' => $title
    );
    $tax_terms = get_terms($taxonomy,$args);
    //print_r($tax_terms);
    ?>
    
    <ul>
    <?php
    foreach ($tax_terms as $tax_term) {
    echo '
    <li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy))  . '">' . $tax_term->name.'</a>'. $tax_term->description.'</li>
    ';
    }
    ?>
    </ul>

    Thanks
    Got it

    Plugin Author Josh Leuze

    @jleuze

    Thanks for sharing your solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Meteor Slides] How to display Slideshow category description in front page?’ is closed to new replies.
Skip to toolbar