Hello
When I need to use de section feature is hard to work with html code. In this case, I’m trying with this code:
<div class="cont">
<a href="the_url" class="item"><figure><img src="the_image_url" /><figurecaption>The figure caption</figurecaption></figure></a>
<a href="the_url" class="item"><figure><img src="the_image_url" /><figurecaption>The figure caption</figurecaption></figure></a>
<a href="the_url" class="item"><figure><img src="the_image_url" /><figurecaption>The figure caption</figurecaption></figure></a>
</div>
First, I had to search for information and finally add remove_filter( 'the_content', 'wpautop' );
to my functions.php
When I publish the post it looks good, but when I edit it, the <a>
tags have disappeared and everything is broken.
Can you tell me how to avoid this type of behavior?
Thanks