Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134715

gmatoka on "Can't get html ordered list tag to work with WP twenty_fourteen"

$
0
0

I'm using twenty_fourteen theme, added a few posts by copy and pasting from Word into the view editor and everything worked great. Went to add another post that contained ordered lists. I discovered that if there is any text between list elements, then WP always inserts code to restart the list at 1, which is not what I want Here's what I mean. Suppose I add this html code inside the text view:

<ol>
	<li>First list element </li>
<p>Some text in between elements </p>
	<li>Second list element</li>
</ol>

What I expect to see in the view is this:
" 1. First list element
Some text in between elements
2. Second list element"

But instead, what I get is:
" 1. First list element
Some text in between elements

1. Second list element"

And when I return back to the edit view, I find that WP has changed my html code to this:

<ol>
<ol>
	<li>First list element</li>
</ol>
</ol>
Some text in between elements
<ol>
	<li>Second list element</li>
</ol>

Why is WP changing my html code? How do I get the '

    ' tag to work like I want it to?

Viewing all articles
Browse latest Browse all 134715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>