Skip Navigation

[Résolu] How do I display an unsorted list

This support ticket is created Il y a 2 années et 11 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Marqué : ,

This topic contains 4 réponses, has 2 voix.

Last updated by davidm-13 Il y a 2 années et 10 mois.

Assisted by: Jamal.

Auteur
Publications
#2071849

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

#2071903

Jamal
Supporter

Languages: Anglais (English ) Français (Français )

Timezone: Africa/Casablanca (GMT+01:00)

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.

#2072069

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

#2072357

Jamal
Supporter

Languages: Anglais (English ) Français (Français )

Timezone: Africa/Casablanca (GMT+01:00)

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. **

#2072915

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.