Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function querypost_widget($atts) {
- extract(shortcode_atts(array(
- "align" => "",
- ), $atts));
- ob_start(); //start output buffering
- if (function_exists('dynamic_sidebar') && dynamic_sidebar('homepage-news-post')) : else : endif;
- $output = ob_get_contents();
- ob_end_clean();
- return $output;
- }
- add_shortcode('qpwidget', 'querypost_widget');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement