• I have recently switched my posts to private and am using a suggested plugin (User Role Editor) to allow registered users to view the posts. my problem is that the count of catagories does not show private posts. Due to my template this kills the navigation menu. Does anyone know a way to resolve such an issue? I don’t know how better to describe it, I apologize. my site is https://www.hybrixraven.com/

Viewing 7 replies - 1 through 7 (of 7 total)
  • If your theme uses wp_list_categories, try setting the hide_empty parameter to to 0 (zero).

    Thread Starter crypticsage

    (@crypticsage)

    my code shows

    <ul id=”nav”>

    • “>Home
    • <?php wp_list_categories(‘sort_column=name&title_li=&depth=2’); ?>
      <?php wp_list_pages(‘sort_column=menu_order&title_li=&depth=2’); ?></align>

      it doesnt show hide empty

    Thread Starter crypticsage

    (@crypticsage)

    sorry i should have put that in code.

    <ul id="nav">
      <li><a href="<?php echo get_option('home'); ?>">Home</a></li>
      <?php wp_list_categories('sort_column=name&title_li=&depth=2'); ?>
      <?php wp_list_pages('sort_column=menu_order&title_li=&depth=2'); ?></align>
    </ul>
    Thread Starter crypticsage

    (@crypticsage)

    i figured it out i just added the &hide_empty=0 to the end of the depth=2. there is no way to only allow the hide_empty to users logged in?

    Thread Starter crypticsage

    (@crypticsage)

    also 2 things, is there a place i can modify the category widget to do the same thing as the menu? and i also tried doing this on the wp_list_pages thing and it didn’t work. any ideas for those 2?

    Thread Starter crypticsage

    (@crypticsage)

    hoping for a fresh set of eyes and input. any ideas? ty

    Instead of modifying core, consider downloading and installing Otto’s PHP Code Widget, then put your code in one of those widgets.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Catagory count for private posts.’ is closed to new replies.