我使用此代码在循环之外的categories archive页面上获取categories slug:
<?php $cat = get_term_by(\'name\', single_cat_title(\'\',false), \'category\'); echo $cat->slug; ?>
我想知道如何在paginate\\u links php代码的“base”=>“/HERE/”中添加该代码的结果,如下所示:
<?php echo paginate_links( array( \'current\' => $current_paginate_page, \'show_all\' => true,\'prev_next\' => false, \'total\' => $wp_query->max_num_pages, \'base\' => \'/HERE/\', \'format\' => \'%#%\' )); ?>
我只是不知道如何在另一个php代码中正确地编写它。请帮忙,谢谢!
http://wordpress.org/support/topic/single_cat_slug?replies=5http://codex.wordpress.org/Function_Reference/paginate_links