• Hello!

    Before the upgrade to 2.7.1, (I was using 2.7), I used a category menu on my site. Each parent category was a menu piece, and it would drop down with the child categories.

    When I upgraded to 2.7.1, it’s not working anymore. Now it just says ‘no categories’ on my site. There are definitely categories. You can see the problem at https://www.makeupfiles.com/.

    It seems that the problem might be the wp-list-categories call, but I don’t know how to fix it. Here’s how they’re called:

    <div id="catmenucontainer">
    	<div id="catmenu">
    			<ul>
    				<?php wp_list_categories('sort_column=name&title_li=&depth=2&exclude= 1,208'); ?>
    			</ul>
    	</div>
    </div>

    I’m using the Zinmag Futura theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • https://codex.www.ads-software.com/Template_Tags/wp_list_categories

    The function does not use.. “sort_column”

    See the link above for examples of excepted parameters..

    Thread Starter goldferris

    (@goldferris)

    Okay, I changed it to:

    <div id="catmenucontainer">
    	<div id="catmenu">
    			<ul>
    				<?php wp_list_categories('orderby=name&title_li=&depth=0&exclude= 1,208'); ?>
    			</ul>
    	</div>
    </div>

    But it’s still not working.

    Just for the moment comment the old line out and just do the standard query.. like so…

    <div id="catmenucontainer">
      <div id="catmenu">
        <ul>
          <?php
          // wp_list_categories('orderby=name&title_li=&depth=0&exclude= 1,208');
          wp_list_categories();
          ?>
        </ul>
      </div>
    </div>

    For testing’s sake! ??

    and let me know if it works… of course.. ??

    Thread Starter goldferris

    (@goldferris)

    Okay, I did that, and it worked, I’m guessing. It now says ‘categories’ and has a drop down from there with parent and child.

    You can see what I mean at https://www.makeupfiles.com/

    I guess now all I need it to do is not have ‘categories’ be the first part of it… um, ya know? and have the parent cats go from left to right with the children in a pull down.

    Just refer to the link i gave you and put back in bits you need, it’s proberly just an old parameter in the old string, i didn’t sit and examine each one…

    **
    Actually looks like it might be this part…

    &exclude= 1,208'

    Should be

    &exclude=1,208'

    Not sure if the space matters, but that could be it… ??

    Thread Starter goldferris

    (@goldferris)

    Thanks, t31os! That space must have been the problem. I took it out and everything is working perfectly.

    You were a major help. Thanks again.

    You’re welcome… ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Categories Not Being Displayed with 2.7.1’ is closed to new replies.