• Resolved 528491

    (@528491-1)


    I have under specific category hundreds upon hundreds of posts. Dragging each post individually one by one up the list to change their order is highly time consuming. How would I go about to create a checklist column next to each post in the list, and then bulk re-order bunch of posts at once to another far position in the list?

    Even more ideally: how would I go about to make Worpress read the Menu structure for that category, and simply re-order posts within that category automatically? Because, as of right now, I need to do the double work: I need to reorder posts in the ReOrder Post Within Categories section, and also reorder them in the Menu structure.

    • This topic was modified 7 years, 4 months ago by 528491.
    • This topic was modified 7 years, 4 months ago by 528491.
    • This topic was modified 7 years, 4 months ago by 528491.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    How would I go about to create a checklist column next to each post in the list, and then bulk re-order bunch of posts at once to another far position in the list?

    mmmh, no easy quick-fix solution to this without some major coding involved, but I am thinking you have something like this in mind.

    Question: what kind of order are you trying to achieve, is it based on a post attribute or characteristic, in which case is a there a logic that can be used to automate the order?

    make Worpress read the Menu structure for that category, and simply re-order posts within that category automatically

    why not just use category terms as menu items, then your posts would be listed in the page. If this is not a convenient and you really need your posts in the menus, then I would recommend the Shortcode in Menus plugin, you cam then simply code the menu structure which will list your ordered posts.

    Thread Starter 528491

    (@528491-1)

    First of, thank you for answering so promptly!

    thinking you have something like this in mind.

    Yes exactly like this. Thank you for this reference.

    I am developing a Project Management solution in WP, specifically for keeping archive record of different Clients I done jobs for, which then parent numerous projects further parenting different Tasks which further nest Subtasks. The final purpose of this structure is for me to filter out specific tasks I did in specific period for specific client, to list them in a Category page (it is a multi-category filtering, in example: https://www.myarchive.com/category/clientName3+perodNo2/) so it can be printed out as a Pdf listing all the work done for that specific period. I use this Pdf as an Invoice for client, listing all specs for each job completed, with corresponding prices/costs.

    why not just use category terms as menu items, then your posts would be listed in the page.

    Because I use multi-filtering to list specific posts on the Category page, not just one condition.

    would recommend the Shortcode in Menus plugin

    I will study this solution and get back here when done. The important part in the Menu is that all the parent/child structure of the posts (or pages) needs to be reflected in this menu as well. It cannot be just a straight list.

    • This reply was modified 7 years, 4 months ago by 528491.
    • This reply was modified 7 years, 4 months ago by 528491.
    • This reply was modified 7 years, 4 months ago by 528491. Reason: additional information
    Plugin Author Aurovrata Venet

    (@aurovrata)

    The final purpose of this structure is for me to filter out specific tasks I did in specific period for specific client, to list them in a Category page (it is a multi-category filtering, in example: https://www.myarchive.com/category/clientName3+perodNo2/

    the link return a 404 error. Could you simply return these posts in the order in which they were completed?

    The ReOrder plugin, uses posts_where and posts_orderby filters to return ordered posts. So you could simply append your own custom order by sql logic to your specific completed taks queries and add an additional order parameter.

    mmmh, no easy quick-fix solution to this without some major coding involved, but I am thinking you have something like this in mind.

    I would look into adding this feature in the future, but right now I am too busy with other projects to work on this. I have plans to re-write this plugin and therefore would rather leave major code addition for the next generation.

    Thread Starter 528491

    (@528491-1)

    the link return a 404 error. Could you simply return these posts in the order in which they were completed?

    The link I wrote is only a dummy link, it is not a real link. It is just to give example. I cannot, because I fill/feed these Tasks and Subtasks in different occasions, so some newly entered tasks could in reality be from 2 years ago, and the other could be from 2 minutes ago.

    I am looking forward you add multisortable.js support in the future, it will benefit the plugin greatly. Just a quick question: I tried simply adding the folowing script to my WP site via Header & Footer Scripts plugin:

    <script type="text/javascript" src="//code.jquery.com/jquery-2.0.2.js"></script>
    <script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <script type="text/javascript" src="https://rawgithub.com/shvetsgroup/jquery.multisortable/master/src/jquery.multisortable.js"></script>
    <script type="text/javascript">//<![CDATA[
    
    jQuery(function($){
    	$('ul.order-list').multisortable();
    	//$('ul#list1').sortable('option', 'connectWith', 'ul#list2');
    	//$('ul#list2').sortable('option', 'connectWith', 'ul#sortable-list');
    });
    //]]> 
    
    </script>
    

    However it does not do anything to the list. The list is still mono-sortable. Am I going in the correct direction?

    Breakthrough! It works! The above code needs to be included into reorder-posts-within-categories.php file. It did not work when I put it in header/footer because it needs to show in Admin, not Front end.

    Thank you so much for your help.
    Just as a feature request, re-ordering posts in parent/child structure so it reflects this exact way into Menu would be amazing. Or vice versa. I know it’s a long shot but it would be fantastic feature.

    • This reply was modified 7 years, 4 months ago by 528491.
    • This reply was modified 7 years, 4 months ago by 528491. Reason: Success!
    • This reply was modified 7 years, 4 months ago by 528491. Reason: Feature request
    Plugin Author Aurovrata Venet

    (@aurovrata)

    Breakthrough! It works! The above code needs to be included into reorder-posts-within-categories.php file. It did not work when I put it in header/footer because it needs to show in Admin, not Front end.

    oh good! Glad you found a solution.

    Thread Starter 528491

    (@528491-1)

    Please do not lock yet, I just found that re-ordering with this script messes up the css style in the list in Admin end. It does not visually put the list items where they really are, even though in front end everything outputs correctly. I will post progress.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I will take a look tomorrow, if it just a question of enqueuing the script and re-styling it should be very easy to incorporate and I will release a new version.

    It 1 am here in Chennai, so I am off to sleep. g night.

    Thread Starter 528491

    (@528491-1)

    Hello,
    Yes I think adding this script in top of the reorder-posts-within-categories.php file does create some enqueuing issues, because it slows down even other actions such as quick-editing posts or adding a new category, it always needs refresh to actually show result. I am sending now 3 screencasts which showcase how it works in my site:

    1) video no.1 (just shows the concept why I need Menu structure reflecting the post order and structure):
    https://www.wevideo.com/view/1013249156

    2) video no.2 (shows what happens to reorder-posts-within-categories plugin when I add the multisorting javascript in top of the file and how lists get messed up in admin end but output correctly in front end, and how refresh is needed to see the result):
    https://www.wevideo.com/view/1013656069

    3) video no.3 (shows how ul.li items overlap each others more clearly when .css styles are disabled):
    https://drive.google.com/file/d/1mTcjrQqFJPhGNMc9eViYeSHms4x7nyjK/view?usp=sharing

    Hope this helps.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bulk order posts’ is closed to new replies.