get_settings_for_display(); $this->add_inline_editing_attributes( 'title', 'none' ); $this->add_render_attribute( 'title', 'class', 'awe-post-title' ); $this->add_inline_editing_attributes( 'content', 'none' ); $this->add_render_attribute( 'content', 'class', 'cap awe-post-con' ); $this->add_inline_editing_attributes( 'cat', 'none' ); $this->add_render_attribute( 'cat', 'class', 'case-studies awe-post-cat' ); $this->add_inline_editing_attributes( 'author', 'none' ); $this->add_render_attribute( 'author', 'class', 'awe-post-author' ); $this->add_inline_editing_attributes( 'date', 'none' ); $this->add_render_attribute( 'date', 'class', 'dot awe-post-date' ); $get_post_name = $settings['post_name']; if( $get_post_name >= 1 ) { $posts_ids = implode(', ', $get_post_name); } else { $posts_ids = ''; } $post_names = explode(',', $posts_ids); $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'posts_per_page' => -1, ); if ( "0" != $get_post_name ) { $args['post__in'] = $post_names; } $single_post = new \WP_Query( $args ); ?> have_posts() ): while( $single_post->have_posts() ): $single_post->the_post(); ?>