trim not removing p tags
-
In the for brackets I am trying to remove the paragraph tags with trim=”true” but it is having no effect. I want a list instead of a paragraph, and my li tags are creating the list but each list item is separated by a paragraph. Everything is all on one line, so I know it’s not WordPress automatically inserting a paragraph for a blank line, but I can’t get it removed. Am I misusing the trim tag?
This is the shortcode I’m using:<ul>[for each="resource_category" link trim=" "]<li>[each link]</li>[loop type="post" count="-1"][field title-link][/loop][/for] </ul>
The resulting code is:
<ul> <li><a href="url-here">Category name</a></li> <p></p> <li><a href="url-here">Category name</a></li> <p></p> </ul>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘trim not removing p tags’ is closed to new replies.