• 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

Post count in navigation

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 › General Discussion › Post count in navigation

This topic is: not resolved

Tagged: post count

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by essaysnark.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 10, 2013 at 12:35 pm #40353
    picturesque
    Member

    I'd like to be able to show the number of posts in a category on the menus. I've seen hacks for this in searches but all the solutions I've seen would be overwritten in an update of WP core. Not a good solution in my humble opinion. I'd like to be able to use the WP build in menu features and have custom menus for selected categories so many hacks wouldn't work anyway. I've come here for the right solution as I've pulled enough of my limited hair out.

    Example:

    Category (6) ..Subcat (3)
    ..Subcat (2)
    ..Subcat (1)


    Michael Davidson
    Picturesque Internet Marketing

    May 10, 2013 at 3:05 pm #40371
    essaysnark
    Participant

    So you probably know about the Category dropdown menu widget that you can use, right? That has an option to include the post count per category.

    To your real question: Unfortunately, as you've discovered already, it looks like putting the post count in a custom menu is pretty advanced. You definitely don't need to modify WP core to do it but you do have to get your hands dirty with some code. This code from StackExchange looks like it would be a good start, if you're up for such a project: http://wordpress.stackexchange.com/questions/18495/taxonomy-menu-with-post-count-and-multiple-parents

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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

© 2023 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