Hot answers tagged

1

You can set orderby slug like : $tags = get_tags( 'order=ASC&orderby=slug' ); $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 .= '</...


1

I believe the most direct way of customizing WordPress feeds is to hook into them directly with the following filter. Edit: as we talked about, let's just edit the content to tear out any function edit_your_feed_content($content) { $content = preg_replace("/(<figure.*?[^>]*>)(.*?)(<\/figure>)/i", "", $content); return $content; } ...


1

If you need to get tags by post id you could use the followng function. This will work on anywhere since the method is based on database querying. function sc_tf_get_tags_as_array($post_id){ global $wpdb; $tbl_terms = $wpdb->prefix . "terms"; $tbl_term_relationships = $wpdb->prefix . "term_relationships"; $sql = "...


Only top voted, non community-wiki answers of a minimum length are eligible