Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] custom order of cats and tags


  #1  
Old Jul 15, 2009, 08:11 AM
jankph
 
93 posts · Jul 2009
ATA 3.6.4 and WP 3.1
Here's an idea. I'm not sure it's even possible:

I would like to order my postinfo categories and tags in a certain order. By default it's alphabetically, but it is possible to make it custom? My vision is a field in the Atahualpa post options when I am editing/writing the post, where I can enter cats and tags in the order (by ID) I want to display them, e.g. 'Enter categories to display: 312,567,886,...' It's just about structuring my cats and tags so it's easier for my readers to find related cats and tags. Or is this already possible today, via php?
  #2  
Old Jul 15, 2009, 07:24 PM
wmoura
 
7 posts · Jun 2009
jankph,

I don't know how to order the tags, but for the categories I've been using "My Category Order" plugin with Atahualpa 3.4.2 and WordPress 2.8.1 and it works very well.
  #3  
Old Jul 15, 2009, 09:35 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Technically possible yes, but that a bit very specific I'm afraid. I wouldn't mind adding it to post info items once the todo list is shorter however I wouldn't want to make the Write Panel too crowded since many users probably wouldn't use this.
  #4  
Old Jul 16, 2009, 01:06 AM
jankph
 
93 posts · Jul 2009
ATA 3.6.4 and WP 3.1
Quote:
Originally Posted by wmoura
jankph,

I don't know how to order the tags, but for the categories I've been using "My Category Order" plugin with Atahualpa 3.4.2 and WordPress 2.8.1 and it works very well.
Doesn't that only work for the category bar? That's not an issue. It's the postinfo I want to order.
  #5  
Old Jul 16, 2009, 01:12 AM
jankph
 
93 posts · Jul 2009
ATA 3.6.4 and WP 3.1
Quote:
Originally Posted by Flynn
Technically possible yes, but that a bit very specific I'm afraid. I wouldn't mind adding it to post info items once the todo list is shorter however I wouldn't want to make the Write Panel too crowded since many users probably wouldn't use this.
The reason for asking is that my blog posts are very often about published research papers. I use categories for the main topic(s) of the paper and tags for the name of the authors and more specific keywords within the paper. Here it makes sense to list the name of the authors first and then the keywords. It just looks more clean and structured. With an alphabetical listing like now that is not possible.

I do agree that it will crowd the Write Panel and maybe be too much of an overhead for something most people have simply accepted as that's the way blogs are.

Anyway, thanks for taking note.
  #6  
Old Jul 20, 2009, 05:58 PM
lizenkohlhaas
 
1 posts · Jul 2009
i got the solution for "custom-order-tags":

1.) in db > wp_term_realtionship > term_order change to primarykey and autoincrement and standard nothing. (delete the 0) to do this, because of primary / no double numbers, you have first to delete complete or to fill "term_order" with a incremetal number. (export .csv > exel > import .csv)

2.) lock in taxonomy.php for the "function wp_get_object_terms.. " an there for string
$defaults = array('orderby' => 'name', 'order' => 'ASC', 'fields' => 'all');

an now, you can change the 'orderby' from 'name' to 'term_order' so you got

$defaults = array('orderby' => 'term_order', 'order' => 'ASC', 'fields' => 'all');

thats all! it tooks me 2 hours to find out. I hope everybody with thes problem will find safe the hours.

custom-order meens, in the order you put the tags while editing the post. if you want change after, you have to delete and re-put them.

greatings from switzerland
  #7  
Old Jan 15, 2010, 12:43 PM
harrison72
 
1 posts · Jan 2010
Quote:
Originally Posted by lizenkohlhaas
i got the solution for "custom-order-tags":

1.) in db > wp_term_realtionship > term_order change to primarykey and autoincrement and standard nothing. (delete the 0) to do this, because of primary / no double numbers, you have first to delete complete or to fill "term_order" with a incremetal number. (export .csv > exel > import .csv)

2.) lock in taxonomy.php for the "function wp_get_object_terms.. " an there for string
$defaults = array('orderby' => 'name', 'order' => 'ASC', 'fields' => 'all');

an now, you can change the 'orderby' from 'name' to 'term_order' so you got

$defaults = array('orderby' => 'term_order', 'order' => 'ASC', 'fields' => 'all');

thats all! it tooks me 2 hours to find out. I hope everybody with thes problem will find safe the hours.

custom-order meens, in the order you put the tags while editing the post. if you want change after, you have to delete and re-put them.

greatings from switzerland
Wow lizenkohlhaas! That is amazing work! Thanks for figuring that out. I have been wanting such a solution for my cats and tags for a while, but what you came up with is way beyond my skill level. Much appreciated.

Last edited by harrison72; Jan 19, 2010 at 09:21 AM.
  #8  
Old Apr 2, 2012, 08:24 AM
Hody's Avatar
Hody
 
156 posts · Apr 2012
Is there also a way to order the categories, on how they appear in the menu?
  #9  
Old Apr 2, 2012, 08:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
go look at the 'MENU 2 (Category Menu)' options
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Apr 2, 2012, 04:01 PM
Hody's Avatar
Hody
 
156 posts · Apr 2012
Thanks, used my category order, now its fixed, thanks again!

Bookmarks

Tags
category order, postinfo, tag order



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to post on 2 seperate "Pages" or "Cats" TPR Atahualpa 3 Wordpress theme 18 Aug 4, 2010 09:24 PM
my-category-order plugin order by 'order' not working darrenk Page & Category Menu Bars 3 Mar 24, 2010 07:56 AM
The order of the header's rows and... ahc Header configuration & styling 2 Jun 2, 2009 03:54 PM
Pages Order in Sidebar gradlebum Atahualpa 3 Wordpress theme 3 May 29, 2009 04:07 PM
changing post order accessart Atahualpa 3 Wordpress theme 0 Mar 27, 2009 05:59 PM


All times are GMT -6. The time now is 12:24 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.