• I’m using the post types order plugin to order custom post types on my website for a while now. But now it suddenly stopped working.

    I still get the previously set order but I can’t update the order anymore.
    When I reload the page after saving changes, I get the old order again.

    The ajax request to the server contains the correct order but it doesn’t get persisted to the database. I don’t get any error messages.

    Has someone experienced this before? Any ideas what to do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Maya

    (@tdgu)

    Hi,
    Check with the AJAX response as might contain errors. Also check with your server error logs for any specific problem.

    Thanks

    Thread Starter mpact

    (@mpact)

    Hi,
    the AJAX response is always 0, which I think is the correct response for a successful request.
    Also there are no errors in the server logs.

    Plugin Author Maya

    (@tdgu)

    Hi,
    Where exactly you’re trying to reorder ? Through the ReOrder interface or within the default WordPress post type interface?
    Can you check with the phpMyAdmin application ( check with your host dashboard ), if the menu_order column ( wp_posts table ) changes for the post you’re trying to sort?

    Thanks

    Thread Starter mpact

    (@mpact)

    Hi,
    I’m trying to reorder through the ReOrder interface.
    The new order that is sent to the server with the AJAX request is correct but the menu_order column in the database is not updating.

    Thread Starter mpact

    (@mpact)

    The problem seems to be line 381 in class.cpto.php.
    apply_filters(‘pto/save-ajax-order’, $data, $key, $id) returns false instead of the order. The line above it (that is marked deprecated) returns the correct order integer.
    When I comment out line 381, the plugin works as intended.

    Plugin Author Maya

    (@tdgu)

    Hi,
    That means, a code on your side is relying on the deprecated filter post-types-order_save-ajax-order and returns FALSE for the $data. That is passed through the new filter pto/save-ajax-order hence you see $data as FALSE.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t save order anymore’ is closed to new replies.