Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jonathanmotes

    (@jonathanmotes)

    Note: only happens when the shortcode is contained within nested divs, like this:

    <div class="frp-left">
    	<div class="calendar-date">
    		<div class="calendar-month">[frp_date format="M" time_since="0"]</div>
    		<div class="calendar-day">[frp_date format="j" time_since="0"]</div>
    	</div>
    </div>
    Plugin Author Paul Annekov

    (@thesteelrat)

    The problem is in function wpautop(). Just try to create new Text widget, insert the same contents and put a tick to “Automatically add paragraphs” checkbox. You would see the same result.
    That function is very buggy as for me. Try to remove all whitespaces and the problem will be solved:

    <div class=”frp-left”><div class=”calendar-date”><div class=”calendar-month”>[frp_date format=”M” time_since=”0″]</div><div class=”calendar-day”>[frp_date format=”j” time_since=”0″]</div></div></div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Erroneous HTML added’ is closed to new replies.