登录 | 注册 | FAQ
Anonymous

How to remove links from tags in wordpress?

+ 发表回复

2 篇帖子 分页: 1 / 1


Re: How to remove links from tags in wordpress?

abhiup81 » 周三 10月 07, 2015 10:33 am

I have already answered this question before that you will can't achieve this. All you can do is delete the tags or use display: none; in your style.css
头像

abhiup81

  • 帖子: 9
  • 注册: 周三 10月 07, 2015 10:18 am
  • 地址: India

Re: How to remove links from tags in wordpress?

johnmacd » 周五 4月 15, 2016 12:50 pm

Hi,

<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ' ';
}
}
?>

Thanks
头像

johnmacd

  • 帖子: 23
  • 注册: 周四 6月 13, 2013 12:50 pm
--
Website Designer with 7 years experience as WordPress Developer. Affordable, Professional and Experienced. 100% Satisfaction. 24/7 Available.


+ 发表回复

分页: 1 / 1