Answers for "list all tags"

5

html tags list

<a href="" rel="" target=""></a>
<abbr></abbr>
<div></div>
<span></span>
<html></html>
<head></head>
<body></body>
<ul></ul>
<ol></ol>
<lh></lh>
<li></li>
<table></table>
<input type="" />
<meta http-equiv="" name="" content="" charset="" />
<title></title>
<thead></thead>
<dir></dir> WARNING: Don't use the dir tag. Use the ul tag instead.
<tbody></tbody>
<tr></tr>
<th></th>
<pre></pre>
<p></p>
<nav></nav>
<main></main>
<header></header>
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
<footer></footer>
<i></i>
<b></b>
<u></u>
<style></style>
<link type="" rel="" href="" />
<img src="" alt="" srcset="" width="" height="" />
<q></q>
<script src="" type="" defer></script>
Posted by: Guest on October-06-2020
0

Show all the tags

$tags = get_tags();
$html = '<div class="post_tags">';
foreach ( $tags as $tag ) {
    $tag_link = get_tag_link( $tag->term_id );
             
    $html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
    $html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language