• Resolved josephyancey

    (@josephyancey)


    With plugin version 2.1.3, if I go to media library then filter by a category, it allows me to drag the attachments around but doesn’t save the updated position (it attempts to call the save-attachment-order ajax action but that just returns success:false). When doing a WP_Query filtering attachments by category, each attachment just has a menu_order of 0.

    The description for the plugin says “Since the version 2.1 you can change the order of media items within a category with drag and drop. This order will be used, in particular, for the gallery based on this category.” but that doesn’t seem to be the case for me.

    https://www.ads-software.com/plugins/enhanced-media-library/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author webbistro

    (@webbistro)

    Hello @josephyancey,

    Please make sure that:

    (1) the problem persists when all other plugins are deactivated

    (2) save-attachment-order returns true when EML is NOT active (choose Unattached from the first filter and change the order by drag and drop)

    Best,
    -Nadia

    Plugin Author webbistro

    (@webbistro)

    Hello @josephyancey,

    The changes were made to media items order in v2.1.4 (see options at Media Settings > Taxonomies > Options > Filters). Please try if this fixes your issue.

    Best,
    -Nadia

    Thread Starter josephyancey

    (@josephyancey)

    Nadia,

    I just updated to 2.1.4 and I now see a new section for filters. I switched the “order menu items by” field to custom order but it still isn’t working. I noticed a setting under the edit screen for my category where I could enable “Remember Terms Order (sort)”. This didn’t fix the problem either. I also disabled all plugins and the problem persisted. save-attachment-order also still returns false when EML isn’t active.

    Plugin Author webbistro

    (@webbistro)

    Hello @josephyancey,

    The problem persists when all plugins disabled means it’s not a problem of any of them. Please try also to activate any WP default theme like Twenty Sixteen and check if this works. Something breaks save-attachment-order on your installation.

    Best,
    -Nadia

    I am having the same issue as josephyancey. The media library grid view allows me to drag and drop the images, and it appears an ajax call is being made to admin-ajax.php with an action of “save-attachment-order”. However the ajax call returns “{“success”:false}” and the order is never actually saved. Any help would be appreciated. Thanks!

    In doing some further troubleshooting, I believe the problem may be that the ajax post does not include a valid nonce value. Looking at the WordPress source, it appears the handler for the save-attachment-order action expects the nonce to be there and fails validation if it is missing.

    Thread Starter josephyancey

    (@josephyancey)

    mchoudoir,

    I was able to find a work around (sort of). In my case, I only needed to display the gallery on one page per category. Instead of ordering the images in the media gallery section, if you edit the page that they are being displayed on and open an image picker (click add image in the featured image field) then filter by category, it will let you order the images there and the order sticks. Its ghetto but this particular client of mine is savvy enough that she understood.

    Thread Starter josephyancey

    (@josephyancey)

    Also, if it helps anybody, it seems to me that the image order is tied to a particular post ID. My thinking is that since we are trying to order the images inside of the media library, there is no post to tie the order to. Mchoudoir may be correct in that its somehow tied to the nonce and not the postID. I’m not sure. I found my workaround and gave up. If it gets fixed and starts working properly, I’ll start using it but right now, I’m just using the workaround.

    Thanks josephyancey! I verified that ordering the media on the page instead of in the media library works for me as well. I checked the traffic on the media picker at the page level, and it is including both a Post ID and a nonce value with the request. I’m assuming the problem is with one of those two values when ordering in the media library. This is really the only problem I have encountered so far with this plugin. Other than that, it seems to be working really well!

    Plugin Author webbistro

    (@webbistro)

    Hello all,

    We were able to reproduce the issue, it will be fixed in the next release. Thank you!

    Best,
    -Nadia

    Christina

    (@carasmo)

    Hello!

    I hope this gets fixed soon, I am not able to re-order images in the Media Library, it won’t save.

    Thanks!

    Please update me when this is fixed. I bought the pro plugin for this feature.

    Plugin Author webbistro

    (@webbistro)

    Hello @carasmo,

    I have replied to your private ticket.

    For everyone interested: the new version with the fix is going to be launched tomorrow. Re-ordering with drag and drop isn’t premium feature. It is available for free users in full.

    Best,
    -Nadia

    That is so cool! Thank you!

    Plugin Author webbistro

    (@webbistro)

    Hello All,

    It’s finally fixed! Sorry for such a long wait

    Best,
    -Nadia

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Can't order attachments within category’ is closed to new replies.