Thank you so much for your quick reply! I found that there was an update to one of the shortcode extensions and that fixed it.
Hello Tanvir,
I appreciate your responses, but the code that you supplied to me does not work. Here’s a screenshot of our chat with code applied and what shows on the screen: https://dairyone.com/wp-content/uploads/sites/2/2022/12/Screenshot-2022-12-26-173239-scaled.jpg
What I want to accomplish seems like it should be quite simple. I want the category “other-department-forms” to show the folders in alphabetical order.
Therefore, the following folders should be listed in this order:
Accounting
Animal Health Diagnostic Lab
Bacteria and Regulatory Lab
Check Mark Laboratory
As you can see above in the screenshot that it displays in the opposite order of what we are hoping, despite whether we choose “asc” or “desc”. This also happens when I use the exact code that you supplied to me.
Can you please take another look and let me know why I am not able to change the order?
Thank you very much for your help,
Jackie
This is still not working. I used the shortcode that you provided to me and the order still doesn’t work… and it also doesn’t made a difference if I change the order to “desc”. Here’s the code I used:
[wpdm_tree download_link=1 category=other-department-forms cat_orderby=”name” cat_order=”asc”]
And here’s a screenshot of it applied in the page:
https://dairyone.com/wp-content/uploads/sites/2/2022/12/Screenshot-2022-12-19-155500-scaled.jpg
Please let me know what I am doing wrong. I would like the folders to start with A, then B, then C.
Thank you!
Jackie
Thank you for the quick reply! Unfortunately, that code is not working either. See it in action here at the bottom of the page: https://dairyone.com/resources/forms-and-documents/
I am so grateful for this! Thank you!!
The way that you changed it did not display the downloads in the proper order. The issue is that the post ID is set when they are uploaded so if they are uploaded out of order then even trying to reorder them using s re-order post plugin doesn’t actually change the ID.
So, my workaround was to edit the ‘publish date’ of each post and then to sort them by date. However, the folders don’t display correctly even though the content inside the folders do. The shortcode I am using is:
[wpdm_tree download_link=1 orderby=date order=desc category=improver-pages]
And the tree appears this way:
2016
Jan
Feb
March
April… etc
2017
Jan
Feb
March
April… etc
2018
Jan
Feb
March
April… etc
– – – BUT – –
What I want is for it to appear this way:
2018
Jan
Feb
March
April… etc
2017
Jan
Feb
March
April… etc
2016
Jan
Feb
March
April… etc
Is there a way to change the order of the categories?
Were you ever able to open the tree links in a new tab?
and here is the live link: http://d1coop.com/dairyone/resources/publications/?pl_edit=on
Hello,
I think the issue is that I reordered the posts which was supposed to change the ID (which is does do with other custom post types, posts, and pages). Even after I re-order the downloads the ID doesn’t seem to change so it is still just organizing them by their uploaded ID instead of the re-ordered ID. I will send over a screenshot of the back and the front so you can see how the display order and the IDs don’t match. If you still need admin access please let me know.
Thanks!
Thanks! When I use that shortcode it still does not display with the proper ID. I’m not sure what causes this… I will attach a screenshot for reference.