Wordpress中的分页术语

问题描述

我正在尝试对条款进行分页,但无法做到。任何帮助,将不胜感激。这是我的代码

                             $taxonomy = 'categories';
                             
                             $terms = get_terms($taxonomy,array( 'parent' => 0 ) ); // Get all terms of a taxonomy
                             if ( $terms && !is_wp_error( $terms ) ) :
                             ?>
                          <?PHP foreach ( $terms as $term ) { ?>
                          <tr class="">
                             <td><span class="tablesaw-cell-content"><a href="<?PHP echo get_term_link($term->slug,$taxonomy); ?>"><?PHP echo $term->name; ?></a></span></td>
                             <td class="numeric"><span class="tablesaw-cell-content"><?PHP echo $term->count; ?></span></td>
                          </tr>
                          <?PHP } ?>
                          <?PHP endif;?>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)