Post ID: 764
order_by_categories: Array
(
    [0] => Array
        (
            [category_order] => Array
                (
                    [0] => 29
                )

            [order_number] => 7
        )

    [1] => Array
        (
            [category_order] => Array
                (
                    [0] => 31
                )

            [order_number] => 2
        )

)
Order array: Array
(
    [category_order] => Array
        (
            [0] => 29
        )

    [order_number] => 7
)
Category Order IDs: Array
(
    [0] => 29
)
Order array: Array
(
    [category_order] => Array
        (
            [0] => 31
        )

    [order_number] => 2
)
Category Order IDs: Array
(
    [0] => 31
)
Order Number before adjustment: 2
Assigned Post ID 764 to order number 2
Post ID: 6183
order_by_categories: 
Post ID 6183 added to unordered posts
Post ID: 797
order_by_categories: Array
(
    [0] => Array
        (
            [category_order] => Array
                (
                    [0] => 31
                )

            [order_number] => 1
        )

    [1] => Array
        (
            [category_order] => Array
                (
                    [0] => 29
                )

            [order_number] => 7
        )

)
Order array: Array
(
    [category_order] => Array
        (
            [0] => 31
        )

    [order_number] => 1
)
Category Order IDs: Array
(
    [0] => 31
)
Order Number before adjustment: 1
Assigned Post ID 797 to order number 1
Post ID: 793
order_by_categories: 
Post ID 793 added to unordered posts
Post ID: 789
order_by_categories: 
Post ID 789 added to unordered posts
Post ID: 788
order_by_categories: 
Post ID 788 added to unordered posts
Post ID: 784
order_by_categories: 
Post ID 784 added to unordered posts
Post ID: 779
order_by_categories: 
Post ID 779 added to unordered posts
Post ID: 778
order_by_categories: 
Post ID 778 added to unordered posts
Final Result Array: Array
(
    [0] => 797
    [1] => 764
    [2] => 6183
    [3] => 793
    [4] => 789
    [5] => 788
    [6] => 784
    [7] => 779
    [8] => 778
)
Array
(
    [0] => 797
    [1] => 764
    [2] => 6183
    [3] => 793
    [4] => 789
    [5] => 788
    [6] => 784
    [7] => 779
    [8] => 778
)

Select your language