Forums › Forums › Menus › Order ascending/descending by Categories ID in WP 2.7.1 doesn‘t work
- This topic has 25 replies, 4 voices, and was last updated 14 years, 8 months ago by imported_Ryan.
-
AuthorPosts
-
March 6, 2009 at 4:31 pm #676AnonymousMember
hi
first, i want to thank you for this great plugin! great work!
but i have a little problem with displaying ascending categorie IDs correctly. i‘va activated the plugin and did no changes in the css. all changes that i‘ve done were:• change the Category order to "ascending ID"
• and set "Show empty categories"but the plugin orders the categories still by ascending name and not by ascending id, as you can see it in the source-code:
[sub:2js1t074]<!– Multi-level Navigational Plugin by PixoPoint Web Development … https://geek.hellyer.kiwi/multi-level-navigation/ –>
<div id="pixopoint_menu_wrapper1">
<div id="pixopoint_menu1">
<ul class="sf-menu" id="suckerfishnav"> <li class="cat-item cat-item-16"><a href="#" >Archiv</a>
</li>
<li class="cat-item cat-item-1"><a href="link" >Titel 2009</a>
</li>
<li class="cat-item cat-item-11"><a href="#" >Impressionen</a>
</li>
<li class="cat-item cat-item-17"><a href="#" >Impressum</a></li>
<li class="cat-item cat-item-15"><a href="#" >Kontakt</a>
</li>
<li class="cat-item cat-item-10"><a href="#" >Künstler</a>
</li>
<li class="cat-item cat-item-13"><a href="#" >Partner</a>
</li>
<li class="cat-item cat-item-4 current-cat-parent"><a href="#" >Programm</a>
<ul class='children'><li class="cat-item cat-item-5"><a href="#" >Gesamtübersicht</a>
</li>
<li class="cat-item cat-item-7"><a href="#" >Moderner Ball</a>
</li>
<li class="cat-item cat-item-9 current-cat"><a href="#" >Rahmenprogramm</a>
</li>
<li class="cat-item cat-item-8"><a href="#" >Tanz Marathon</a>
</li>
<li class="cat-item cat-item-6"><a href="#" >Workshops</a></li>
</ul>
</li>
<li class="cat-item cat-item-3"><a href="#" >Thema & Inhalt</a>
</li>
<li class="cat-item cat-item-14"><a href="#" >Tickets / Anmeldung</a>
</li>
<li class="cat-item cat-item-12"><a href="#" >Veranstaltungsort</a>
</li></ul>
</div>
</div>[/sub:2js1t074]i‘ve installed the latest release of the plugin.
anyone an idea?regards from switzerland
(i‘m sorry abaout my bad english…)
March 8, 2009 at 4:31 am #5539imported_RyanMemberHmmm, this might be a bug. I’m too busy to deal wtih this at the moment unfortunately, but I’ll try to remember to look into it in a week or so.
March 9, 2009 at 12:31 pm #5540AnonymousMemberhi ryan
i would be very happy about fixing this "bug".
regards from switzerlandMarch 14, 2009 at 6:45 pm #5541AnonymousMemberno idea were the bug is hiding?
March 15, 2009 at 12:16 pm #5542AnonymousMemberDude – your updated has buggered my site’s navigation – 1 week and no fix?! WTF?!
March 16, 2009 at 7:32 am #5543imported_RyanMemberDude! What update has ‘buggered your site’s navigation’? Which version were you upgrading from and which did you upgrade to?
I can not help unless someone reports a problem. The above report was for a general bug, no one has mentioned anything about it being caused by an upgrade, hence I haven’t bothered to fix it yet.
March 26, 2009 at 3:43 pm #5544AnonymousMemberHi,
I’m installed the plugin yesterday for first time and it’s excelent!! But I have the some problem. I need the order of the categories by ascendig ID or "custom order", but still by ascending name.
any idea?
thanks
etruelMarch 26, 2009 at 5:13 pm #5545AnonymousMemberI think I found it:
in core.php in the line 67 change the line
[code:25rtl36p] wp_list_categories(‘title_li=&’.$suckerfish_categorycount.$suckerfish_categoryshowempty.’&’.get_option(‘suckerfish_includeexcludecategories’).’=’.get_option(‘suckerfish_excludecategories’).$suckerfish_depthcategoriesecho);[/code:25rtl36p]for
[code:25rtl36p] wp_list_categories(‘title_li=&’.$suckerfish_categorycount.$suckerfish_categoryshowempty.’&’.get_option(‘suckerfish_includeexcludecategories’).’=’.get_option(‘suckerfish_excludecategories’).$suckerfish_depthcategoriesecho.$suckerfish_categoryorderecho);[/code:25rtl36p]missed parameter $suckerfish_categoryorderecho
Its work fine for me, enjoy ” title=”Wink” />
etruelMarch 26, 2009 at 6:23 pm #5546etruelMemberHi
a minutes ago I posted like Guest the solution of this problem in reply of this post.
In my web I need a manually order and the WP plugin my category order work fine for this.if you want to do this plugin compatible with "my category order" plugin, you can do this:
[list:3c7kxl8y]
[*:3c7kxl8y]only need a new option in select of categories order… somethink like "My Category Order"[/*:m:3c7kxl8y][/list:u:3c7kxl8y]and modify a couple of lines of code in core.php:
[list:3c7kxl8y]
[*:3c7kxl8y]in line 66 + or – add another "case" in the instruction [i:3c7kxl8y][b:3c7kxl8y]switch ($suckerfish_categoryorder){[/b:3c7kxl8y][/i:3c7kxl8y][/*:m:3c7kxl8y][/list:u:3c7kxl8y][code:3c7kxl8y] case "My Category Order":
$suckerfish_categoryorderecho = ‘&orderby=order’;
break;
[/code:3c7kxl8y]only with two things, your plugin is My Category Order plugin compatible and can order manually 1×1 the categories in the menu
enjoy ” title=”Wink” />
etruelMarch 27, 2009 at 7:12 pm #5547LufferMember"Ryan" wrote:Hmmm, this might be a bug. I’m too busy to deal wtih this at the moment unfortunately, but I’ll try to remember to look into it in a week or so.This is quite a serious bug and it’s affected me too, it can’t order categories by ID, it only ever seems to do it by ascending name. Have you had a chance to look into this yet? I don’t want my "News" menu item towards the bottom of my menu, I want it at the top! Please try to fix this, because it’s a superb plug-in that is broken in the latest version of WordPress
March 27, 2009 at 7:26 pm #5548etruelMemberHi
a temporal solution of this bug until the update of the plugin is edit the file [b:3ljbj4o7]core.php[/b:3ljbj4o7] in the plugin folderthe line 67
[code:3ljbj4o7]wp_list_categories(‘title_li=&’.$suckerfish_categorycount.$suckerfish_categoryshowempty.’&’.get_option(‘suckerfish_includeexcludecategories’).’=’.get_option(‘suckerfish_excludecategories’).$suckerfish_depthcategoriesecho);
[/code:3ljbj4o7]replace by
[code:3ljbj4o7]wp_list_categories(‘title_li=&’.$suckerfish_categorycount.$suckerfish_categoryshowempty.’&’.get_option(‘suckerfish_includeexcludecategories’).’=’.get_option(‘suckerfish_excludecategories’).$suckerfish_depthcategoriesecho.$suckerfish_categoryorderecho);[/code:3ljbj4o7]It’s work fine for me ” title=”Cheesy” />
March 28, 2009 at 11:28 pm #5549imported_RyanMemberThanks for the bug reports ” title=”Smiley” /> I’ll have this added to a new version very shortly … within 10 mins unless I get sidetracked. It won’t be uploaded to the repository for a day or so as I want to triple check no one has any problems with it first as there will be a few extras added in, not only this bug fix.
March 28, 2009 at 11:52 pm #5550imported_RyanMemberA new version is available in another topic … https://geek.hellyer.kiwi/forum/http://local … ic.php?t=4
etrule – I’m about to take a look at your other suggestion and will hopefully get that implemented too. I’ve added a credit to you in the readme.txt file (will appear in the plugin repository once it’s uploaded), would you like a link added to your name? If so, just let me know the URL and I’ll add it in.
March 29, 2009 at 12:30 am #5551imported_RyanMemberI’ve now added the code to support the ‘My Category Order’ plugin. If any of you get a chance to test this I’d love to hear if it worked. I don’t actually have the plugin installed so haven’t tested it myself yet but am assuming it should work fine.
March 31, 2009 at 12:52 pm #5552AnonymousMemberi‘m sorry, but your update doesn‘t fix this bug! i‘ve tryed with older version (multilevel & wordpress) but everywhere‘s the same bug…
maybe your plugin doesnt likes the german wp-edition???
so, i‘m very pleased if you can FIX this bug.
thank you! -
AuthorPosts
- You must be logged in to reply to this topic.