• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • PSD to Genesis
  • Personalized Genesis Child Theme
  • Custom Website
  • Rainmaker
  • Genesis Customizations

Christoph Herr

Solutions For Your Online Business

  • Home
  • Articles
  • Recommendations
  • About
  • Praise
  • Contact
  • Schedule a Call

Code to output tags of a post as list before WordPress 4.4

Last updated on August 31, 2017 by Christoph Herr

add_filter( 'widget_tag_cloud_args','single_post_tag_cloud_tags' );
/**
 * Output the tag_cloud only with tags of the single post as a list]
 * @param    array $args    Display arguments.
 * @return array Settings for the output.
 */
function single_post_tag_cloud_tags($args) {

        global $post;
        $post_tag_ids = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) );
        $args = array(
                    'include' => implode( ',',$post_tag_ids ),
                    'largest' => 12,
                    'smallest' => 12,
                    'format' => 'list',
                );
        return $args;
}

Primary Sidebar

Getresponse Email MarketingWordPress Speed Test

Subscribe to my newsletter

Please enter your information here:

I hate spam. Your information is save.

Latest Posts

WordPress Black Friday & Cyber Monday Deals

Once again it´s time for WordPress Black Friday & Cyber Monday Deals.Like last year, I have … [Read More...] about WordPress Black Friday & Cyber Monday Deals

Cafe Pro - sticky menu and image logo - end result

Add a logo to the sticky menu of Cafe Pro

A member of the Studiopress forum asked how to show a logo in the after header menu (primary … [Read More...] about Add a logo to the sticky menu of Cafe Pro

Smart Passive Income Pro screenshot

Remove the featured image from the homepage of Smart Passive Income Pro

Studiopress just released a new child theme for the Genesis Framework, called Smart Passive Income … [Read More...] about Remove the featured image from the homepage of Smart Passive Income Pro

Footer

StudioPress Theme of the Month

Home · Articles · Recommendations · About · Praise · Terms of Service · Sitemap · Contact

The links on this site might be associated with affiliate marketing programs. I may receive a commission for any sale via these links.

Copyright © 2012–2019 by Christoph Herr · Powered by the Genesis Framework