Hi I have this code to display lists
<div>
<label for="name" class="control-label">English name(s)</label>
<div class="scroll">
<ul class="lst-style2">
<li>[wpv-post-taxonomy type="english-name" format="name" separator="</li><li>"]</li>
</ul>
</div>
</div>
The lists are always sorted alphabetically - I would like the lists to appear as input without any sort, is this possible?
Thanks for any help
Hello and thank you for contacting Toolset support.
Well, the shortcode accepts an optional argument order that can be either asc(default) or desc, alphabetically. https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153472
I am not sure what do you mean by I would like the lists to appear as input without any sort
Maybe you mean the order that appears on the backend on the list of terms, right?
If that's the case, it is not possible out of the box. It will need one of the following solutions:
- Using a 3rd party plugin, such as https://wordpress.org/plugins/taxonomy-terms-order/
- Using a custom shortcode instead of wpv-post-taxonomy shortcode. Check an example here https://toolset.com/forums/topic/how-to-control-the-display-order-of-taxonomies/
- Using a taxonomy view instead of wpv-post-taxonomy shortcode.
I hope this answers your question. Otherwise, please provide more details or an example that may help me understand your question better.
Hi Jamal,
Thanks for your reply, just to be clear if I have the following taxonomy list:
D, A, B, C - that's how I want the list to appear.
not A, B, C, D or D, C, B, A as is happening at the moment.
In my case they're isolated cases where I need this feature so my solution was to enter it as just 1 taxonomy:
"D A B C"
Thanks
In this case, I believe that a 3rd party plugin is the best-suited solution https://wordpress.org/plugins/taxonomy-terms-order/
Have you been able to test it? If it does not work as expected, please allow me temporary access to your website and I'll check it closely. Let me know what view are you working on? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
My issue is resolved now. Thank you!