crocoblock – listing-Test

Listing „Mitarbeiter (without shortcode)“

Mitarbeiter 3

Mitarbeiter 2

Mitarbeiter 1

Listing „Mitarbeiter (with shortcode)“

This Listing generates empt <p>-tags?:

Mitarbeiter 3

Mitarbeiter 2

Mitarbeiter 1

The content comes from a shortcode, here is the code:

add_shortcode( 'html_output', 'html_output' );	
	function html_output() {
		ob_start();
		?>		
		<h3> <?php the_title(); ?></h3>
		<?php
		return ob_get_clean();
	}

Here i place the shortcode outside a listing grid. No empty <p>-tag is generated:

crocoblock – listing-Test