WordPress.org

Support

Support » Plugins and Hacks » Switch between post type removes selected posts

Switch between post type removes selected posts

  • Hi again !

    I found a bug that when you switch between post type (articles, pages…), your selected posts are not shown anymore. Here is a quick fix :

    All changes are done in static/js/my_posts_order.js

    After line 105, add this :
    var post_ids = jQuery("input[name=post_ids]").val();

    Change line 109 to this :
    type: "post",url:"admin-ajax.php", data: { action: 'drag_drop_criteria', post_type: post_type, post_ids: post_ids },

    It adds the ids of your selected posts to the query which handle the switch between post type, so it will show your actual selected posts instead of “No selections made”.

    I would be glad to help you to update this plugin if you want to !
    http://wordpress.org/extend/plugins/my-posts-order/

Viewing 1 replies (of 1 total)
  • Plugin Author Kapil Chugh
    Member

    @kapilchugh

    Hi,

    Thx again for your help!

    Surely, will fix it and update the plugin soon.

    Keep updating me like this 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Switch between post type removes selected posts’ is closed to new replies.