Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

Hybrid News - categories in sub-nav menu

  1. Justin,

    About the categories questions from here: http://themehybrid.com/support/topic/hybrid-news-wordpress-theme-release ...the thing is that I have 14 categories and in the sub-menu nav there are shown just 6. Is there a limitation setup somewhere?

    Thanks!

  2. You must be a logged-in exclusive member to view this reply.

  3. Thanks!

  4. Justin,

    I realized where the "error" was coming from. The cat-nav container has a width and once the categories go further than that, they do not show. I know that in the past you were making them show on the next row too. I don't know if this is possible now.
    I did solve the problem for my by increasing that width, but I though is good to share with you too.

    All the very best!

  5. You must be a logged-in exclusive member to view this reply.

  6. Well, I believe it is very good what it is for now. You can take a look here at what I did http://www.lumebuna.ro :)

    What you did with these theme is just AMAZING!!

  7. Trying to work with the Hybrid-News theme.

    Is it possible to modify this function I was using in my custom Hybrid? I couldn't figure out how to get it in the category menu.

    add_filter('hybrid_cat_nav', 'custom_cat_nav');
    
    function custom_cat_nav($menu) {
    	$menu = false;
    
    	$menu = '<div id="cat-navigation"><ul>';
    
                    $menu .= '<li><a href="' . get_tag_link(18) . '"> </a></li>';
    
                    $menu .= '<li><a href="' . get_tag_link(18) . '">TWENTY &amp; UP</a></li>';
    
    		$menu .= '<li><a href="' . get_tag_link(19) . '">ADULTS</a></li>';
    
    		$menu .= '<li><a href="' . get_tag_link(13) . '">SENIORS</a></li>';
    
    		$menu .= '<li><a href="' . get_tag_link(14) . '">TEENS</a></li>';
    
    		$menu .= '<li><a href="' . get_tag_link(15) . '">KIDS</a></li>';
    
    	$menu .= '</ul></div>';
    
    	return $menu;
    }

    I tried to add an include instead but I must be missing something
    'include' => '28, 29, 19,',

    Thank you for your help.

  8. Just an idea here:
    My current theme - one-theme has it built into the admin panel where it displays all the pages and topics with selection boxes next to them. I simply choose which pages and categories I want to display in my header. The gui makes it really easy especially for my 'basic' wordpress users on my system.

    While it would not solve the problem of to many links it might be a good idea to add it to the hybrid admin?
    (It's not really all that much code)

  9. In the 'functions.php / function news_category_menu_args($args)', could you please examplify how to add the include and exclude-options?

  10. You must be a logged-in exclusive member to view this reply.

  11. Hi,
    I'm new here! I was directed to this thread because I too am interested in being able to control which Categories appear in that menu bar just above the (way cool <g>) slider thing. I found the spot in the functions.php where I could add 'include' => '1,2,3,4' (right now it says 'depth' => 4. What's weird is that even given that 5 categories are showing. And when I changed that to the include to be able to select which categories display it doesn't change from the 5 categories that are there. Am I not looking in the right place? Thanks!

  12. You must be a logged-in exclusive member to view this reply.

  13. Hi,
    It's me again. Here's the site: http://www.horsemansarts.com/MustangAlley/
    As already mentioned (in the post about the font change) I uploaded a brand new theme and just made the one necessary change to the stylesheet in order to get the tabbed widget working. (which it is and the fonts are all correct now)

    I would like to be able to choose which categories display on the menu and also how many display. I thought a work around would be the category ordering plugin but it doesn't seem to affect the menu bar. I ordered the categories with the plugin yet the menu still displays what it wants to display!! Everything would be PERFECT if I could just resolve that teeny problem.

  14. You must be a logged-in exclusive member to view this reply.

  15. I had only just downloaded the hybrid theme so I thought I must have the most recent version. And I'd already tried to make the include changes to the template to no avail. But I decided to just go with the suggestion and RE-download the hybrid theme files and voila it is now working. YAY! Thanks!

  16. I'm back. I'm still trying to get the category menu to display in exactly the order I want. I now have the right categories displayed but not in the right order. It seems to be in alphabetical order? (is that a default?) Is there a way to over ride this? To specify a specific order? I'm not a programmer so it could very well be that I've left something out.

    Here's the link to the site: http://www.horsemansarts.com/MustangAlley/
    Here's the part of the code I have altered. What have I done wrong? Thanks!

    function news_category_menu_args($args) {
    	$args = array(
    		'include' => '15,9,19,22',
    	);
    	return $args;
    }
  17. You must be a logged-in exclusive member to view this reply.

  18. OK got it! Thanks!

  19. Just when I thought I had it under control! Not sure I'm reading this right. It sounds like what I want to do isn't possible? I want to TELL it what order to put the categories in. So not asc OR desc. A custom order. Is that possible?

  20. Sharon

    I had to do this a while ago where the categories had to be in a specific order
    you could try

    'orderby' => 'ordering',
    		'order' => 'DESC',
    		'include' => '15,9,19,22',

    but I don't know whether hybrid has the "ordering" parameter since it isn't listed in the codex docs

    This is how I used it with wp_list_categories

    <?php wp_list_categories('orderby=ordering&order=DESC&include=15,33,26,9&hide_empty=0&use_desc_for_title=0&title_li=');?>
  21. You must be a logged-in exclusive member to view this reply.

  22. It works with wp_list_categories but I don't know whether it will work with the hybrid menu args - and it only works properly if used in combination with ASC or DESC. If you use DESC it will output in exactly the order specified.

  23. I tried it and, oh well, no change. Doesn't matter, it isn't all that critical. Thanks for the help though!!

  24. Just piping in here to let you know I have the same desire (i.e. custom ordering the categories in the menu bar). I love the theme and am using the "News" child, true to it's name, to set up a news/magazine type site. I've tried the category order plugin by Wessley Roche, which makes it very easy, if it would only work with this theme.

    Anyway, since I'm here already I also wanted to thank you, Justin, for making this fantastic theme available! :)

  25. I am really new to all of this. Just started working with Hybrid News today and was also looking for a way to order the category menu myself. I have a thought. You can order the categories by slugs. Why not construct the slugs in a way that will sort the categories the way you want? For example, start the slugs with cat01-, cat02-, etc.

    Off to try it now!

  26. You must be a logged-in exclusive member to view this reply.

  27. There is a great plugin to order your categories, without the need to change your code: Category Order : http://wordpress.org/extend/plugins/my-category-order/

  28. @Satilmis, I use that one but it doesn't change the order in the top nav menu. Did you get it to work?

  29. I am curious. Would naming the slugs 01-music, 02-books, 03-movies be meaningful to search engines?

  30. You must be a logged-in exclusive member to view this reply.

Reply »

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (253 posts)
  • Hybrid Theme (21,735 posts)
  • Options Theme (10,356 posts)
  • Structure Theme (2,747 posts)
  • Outline Theme (36 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (305 posts)
  • WordPress Plugins (2,045 posts)
  • General Discussion (5,276 posts)