'post_comment_tag', 'description' => __('A widget for Posts, Comments and Tags.', 'freemium') ); $freemium_control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'post-comment-tag-widget' ); parent::__construct( 'post-comment-tag-widget', __('Posts Comments and Tags', 'freemium'), $freemium_widget_ops, $freemium_control_ops ); } function widget( $args, $instance ) { extract( $args ); //Our variables from the widget settings. $freemium_title = apply_filters('widget_title', $instance['title'] ); $freemium_show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false; echo $before_widget; // Display the widget title if ( $freemium_title ) { ?>
5, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish' ); $freemium_single_post = new WP_Query( $freemium_args ); while ( $freemium_single_post->have_posts() ) { $freemium_single_post->the_post(); ?>-
'; foreach ( (array) $freemium_post_comment as $freemium_comment) { echo'- admin on ' . get_the_title($freemium_comment->comment_post_ID) . '
';
}
echo'
'; ?>