SHOW:
|
|
- or go back to the newest paste.
1 | function querypost_widget($atts) { | |
2 | extract(shortcode_atts(array( | |
3 | "align" => "", | |
4 | ), $atts)); | |
5 | - | |
5 | + | ob_start(); //start output buffering |
6 | if (function_exists('dynamic_sidebar') && dynamic_sidebar('homepage-news-post')) : else : endif; | |
7 | $output = ob_get_contents(); | |
8 | ob_end_clean(); | |
9 | return $output; | |
10 | } | |
11 | ||
12 | add_shortcode('qpwidget', 'querypost_widget'); |