-
Mihail
(Member)
Posted 2 years ago | Permalink
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!
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
Mihail
(Member)
Posted 2 years ago | Permalink
-
Mihail
(Member)
Posted 2 years ago | Permalink
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!
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
Mihail
(Member)
Posted 2 years ago | Permalink
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!!
-
Micky
(Member)
Posted 2 years ago | Permalink
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 & 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.
-
anointed
(Member)
Posted 2 years ago | Permalink
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)
-
Stefan Johansson
(Member)
Posted 2 years ago | Permalink
In the 'functions.php / function news_category_menu_args($args)', could you please examplify how to add the include and exclude-options?
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
sharon
(Member)
Posted 2 years ago | Permalink
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!
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
sharon
(Member)
Posted 2 years ago | Permalink
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.
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
sharon
(Member)
Posted 2 years ago | Permalink
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!
-
sharon
(Member)
Posted 2 years ago | Permalink
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;
}
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
sharon
(Member)
Posted 2 years ago | Permalink
-
sharon
(Member)
Posted 2 years ago | Permalink
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?
-
Brenda
(Member)
Posted 2 years ago | Permalink
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=');?>
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
Brenda
(Member)
Posted 2 years ago | Permalink
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.
-
sharon
(Member)
Posted 2 years ago | Permalink
I tried it and, oh well, no change. Doesn't matter, it isn't all that critical. Thanks for the help though!!
-
nightowl
(Member)
Posted 2 years ago | Permalink
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! :)
-
midpath89
(Member)
Posted 2 years ago | Permalink
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!
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.
-
Satilmis
(Member)
Posted 2 years ago | Permalink
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/
-
nightowl
(Member)
Posted 2 years ago | Permalink
@Satilmis, I use that one but it doesn't change the order in the top nav menu. Did you get it to work?
-
midpath89
(Member)
Posted 2 years ago | Permalink
I am curious. Would naming the slugs 01-music, 02-books, 03-movies be meaningful to search engines?
-
Justin Tadlock
(Administrator)
Posted 2 years ago | Permalink
You must be a logged-in exclusive member to view this reply.