php - Wordpress, editing blog index link -
im trying edit webisites blog inherited creator have no contact with. have been fiddling site little more week don't know how edit links in blog index.
here link site's blog: http://bestdetails.com/blog/
as can see box link whole article, , in article if scroll down can see tags post.
i want tags inside box show on blog index page instead.
i want put tags red circle is:
i know can edit blog in blog.php, don't know code or in html text put code.
in order access post tags, have function get_tags();
it called way:
$tags = get_tags(); $html = '<div class="post_tags">'; foreach ( $tags $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;
the place edit depend on theme, can in index, page.php or blog.php. take @ settings -> reading , see page acting home , acting blog. after go pages , see template associated, if any.
Comments
Post a Comment