• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Limit Tag Count

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Limit Tag Count

This topic is: not resolved

Tagged: tag, tags

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 2 months ago by Breezii K..
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 9, 2016 at 3:34 pm #185316
    Breezii K.
    Member

    Hello,

    I'm using the genesis sample child theme and have the tag cloud widget appearing in my site footer. The widget is already customized with some coding to help edit the font sizes and exclude certain tags from appearing. What I am looking to customize with it even further though, is how to limit the number of tags that appear. I have tried to google and test out some of the code snippets that I found, but most of them made the site pull an error instead, luckily I had backups to fix this with.

    If anyone can help me figure out which code snippet I need to customize the number of tags that appear, that would be awesome!

    Thanks so much,

    - Bre

    May 10, 2016 at 3:03 pm #185370
    Victor Font
    Moderator

    Here are some details about modifying the tag cloud: http://victorfont.com/wordpress-tag-cloud-font-size/

    In your case, the code you would use is:

    add_filter('widget_tag_cloud_args','set_tag_cloud_font_size');
    function set_tag_cloud_font_size($args) {
        $args['number'] = 20; /* display only 20 tags */
        return $args; 
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    May 10, 2016 at 4:54 pm #185371
    Breezii K.
    Member

    That worked exactly as intended - thank you so much!!! 🙂

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble