By | April 28, 2017
Reading Time: 2 minutes

Numbered List In Reverse Order

Do you need a numbered list in reverse order? I recently had a need for just such a reverse ordered numbered list. I had never thought about needing such a list but a post required that I list the items in reverse order or from last to the first or best option in the list. So when I went to the editor menu and pulled down the options for numbered list this is what I found.

Numbered list in reverse order numbered list options

 

Nothing on there looked like a reverse order option.  So in looking for a solution, I ran into the perfect solution. No plugins required. I love this kind of solution. It just requires a little bit of code to change the numbered list to a reverse order.

Let’s begin

But before we deal with the code a numbered list must be in place. So let’s create one.

  1. this is line one
  2. line two
  3. this is line three
  4. and this is line four
  • Switch to the Text editor
  • Locate the <ol> in the numbered list you created
  • add a space and type in the word reversed it will look like this <ol reversed>
  • switch back to visual editor
 Numbered List In Reverse Order Post with numbered list in place go to text editor Numbered List In Reverse Order Find the ol at the start of your numbered list Numbered List In Reverse Order Add a space and reversed Numbered List In Reverse Order Back to Visual Editor Numbered List In Reverse Order Your list is now in reverse order

So there you have it. A neat little bit of code added in the right place to reverse the order. Remember that the numbers are the only thing that is reversed. The contents of each line stay in the same order.

Related Articles: More WordPress Articles


(Mybusyretiredlife.com All Rights Reserved)

(Mybusyretiredlife.com All Rights Reserved)

(Mybusyretiredlife.com All Rights Reserved)

(Mybusyretiredlife.com All Rights Reserved)

(Mybusyretiredlife.com All Rights Reserved)

(Mybusyretiredlife.com All Rights Reserved)

RayC.
Latest posts by RayC. (see all)

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.