WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] How to display Slideshow category description in front page? (3 posts)

  1. remita
    Member
    Posted 1 year ago #

    Hi

    How to display Slideshow category description in front page?

    We i add a slide under the Slideshow category,the slide shows uncategorized(default) in slide list page.

    http://wordpress.org/extend/plugins/meteor-slides/

  2. remita
    Member
    Posted 1 year ago #

    <?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

  3. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for sharing your solution.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic