| @@ -18,10 +18,11 @@ | ||
| 18 | 18 | remove_filter( 'the_content', array( $this, 'content_filter' ), 10 ); |
| 19 | 19 | |
| 20 | 20 | $grid = new WPUPG_Grid( get_post() ); |
| 21 | 21 | |
| 22 | - $content .= '[wpupg-filter id="' . $grid->slug() . '"]'; | |
| 23 | - $content .= '[wpupg-grid id="' . $grid->slug() . '"]'; | |
| 22 | + $content .= '<div class="wpupg-grid">'; | |
| 23 | + $content .= $grid->draw_posts(); | |
| 24 | + $content .= '</div>'; | |
| 24 | 25 | |
| 25 | 26 | add_filter( 'the_content', array( $this, 'content_filter' ), 10 ); |
| 26 | 27 | } |
| 27 | 28 | |