WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
Switch between post type removes selected posts (2 posts)

  1. Hyp3R
    Member
    Posted 1 year ago #

    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/

  2. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thx again for your help!

    Surely, will fix it and update the plugin soon.

    Keep updating me like this :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic