My scenario is as follows:
Categories:
1. Category A
- Sub-Category A1
- Sub-Category A2
- Sub-Category A3
2. Category B
- Sub-Category B1
3. Category C
4. Category D
The Category template has a list of all posts that belong to that relevant Category and are ordered by Menu_Order.
My problem is that if a single Post happens to fall under multiple categories (Sub Category A1 and Category C), I can only set a generic menu_order in Wp-Admin and it is not Category specific.
I would like a Post to be ordered something like this:
Single Post
- Category A: Menu_order 3
- Category A2: Menu_order 2
- Category C: Menu_order 11
Is there a way for me to set the menu_order for a post when it's under Category A1 and then another menu_order for Category C?
I've read this: Different post sort order within different categories and I think this may help, but I'd like to know if there is a quicker and simpler way.
I'm using the latest WordPress 3.8, Advanced Custom Fields 4.2.2 (to populate post content) and I've created a CPT in my functions.php.
Edit: I've begun constructing the custom fields in my Category Edit screen as suggested in the first answer.
Currently it is a jQuery sortable ul list of Post titles, each with the relevant post_ID as the id of the li
I think the best approach for me now would be to have an AJAX call after every jQuery re-sort that sends an array of post_IDs to a function that will write to the DB.
Edit 2:
I've successfully managed to store the sortable order in a database using a function.
My next step is to look into WP_Query and seeing if we can use an array of posts to determine an output order.