Login | Register | FAQ
Anonymous

How to remove links from tags in wordpress?

+ Post a reply

2 posts Page 1 of 1


Re: How to remove links from tags in wordpress?

by abhiup81 » Wed Oct 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
User avatar

abhiup81

  • Posts: 9
  • Joined: Wed Oct 07, 2015 10:18 am
  • Location: India

Re: How to remove links from tags in wordpress?

by johnmacd » Fri Apr 15, 2016 12:50 pm

Hi,

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

Thanks
User avatar

johnmacd

  • Posts: 23
  • Joined: Thu Jun 13, 2013 12:50 pm
--
Website Designer with 7 years experience as WordPress Developer. Affordable, Professional and Experienced. 100% Satisfaction. 24/7 Available.


+ Post a reply

Page 1 of 1