显示具有特定类别的帖子的特色图像

时间:2015-02-17 05:55:58

标签: wordpress-plugin

<?php 
                        $args = array(
                        'show_option_all'    => '',
                        'orderby'            => 'name',
                        'order'              => 'ASC',
                        'style'              => 'list',
                        'show_count'         => 0,
                        'hide_empty'         => 1,
                        'use_desc_for_title' => 1,
                        'child_of'           => 0,
                        'feed'               => '',
                        'feed_type'          => '',
                        'feed_image'         => '',
                        'exclude'            => '',
                        'exclude_tree'       => '',
                        'include'            => '',
                        'hierarchical'       => 1,
                        'title_li'           => __( 'Categories' ),
                        'show_option_none'   => __( '' ),
                        'number'             => null,
                        'echo'               => 1,
                        'depth'              => 0,
                        'current_category'   => 0,
                        'pad_counts'         => 0,
                        'taxonomy'           => 'category',
                        'walker'             => null
                        );
                        wp_list_categories( $args ); 
                    ?>

上面是我的代码,显示所有类别,现在每个类别都有一些帖子有特色图片,以便如何在点击特定类别时显示特色图片。

0 个答案:

没有答案