最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

categories - Get category base permalink

programmeradmin0浏览0评论

i need to place category base permalink in my theme like this

<?php if ( is_category('in-theaters') ) { ?>
<li class="active"><a href="<?php echo esc_url( home_url() ); ?>/genre/in-theaters/"><i class="fa fa-ticket"></i><span><?php echo intheaters; ?></span></a></li>
<?php } else { ?>

<li><a href="<?php echo esc_url( home_url() ); ?>/genre/in-theaters/"><i class="fa fa-ticket"></i><span><?php echo intheaters; ?></span></a></li>
<?php } ?>

so i need this output result

http://mywebsite/category/

发布评论

评论列表(0)

  1. 暂无评论