3, 'post__in' => get_option( 'sticky_posts' ), //'ignore_sticky_posts' => 1 ); } /** * When you display links list of the Recent Posts , please delete comment out of add_action( ). * * * */ if ( !isset( $raindrops_bf_recent_posts ) ) { $raindrops_bf_recent_posts = 'y'; } if ( !isset( $raindrops_bf_recent_posts_setting ) ) { $raindrops_bf_recent_posts_setting = array( 'title' => esc_html__( 'Recent Posts', 'raindrops' ), 'numberposts' => 4, //show count 'raindrops_excerpt_length' => 50, // excerpt length 'raindrops_excerpt_more' => '...', // excerpt more marker 'raindrops_post_thumbnail' => true, 'raindrops_recent_post_thumbnail_default_uri' => get_template_directory_uri() . '/images/dummy.png', ); } /** * When you display the category contain post list , please delete comment out of add_action( ). * * * * */ if ( !isset( $raindrops_bf_category_posts ) ) { $raindrops_bf_category_posts = 'y'; } if ( !isset( $raindrops_bf_category_posts_setting ) ) { $raindrops_bf_category_posts_setting = array( 'title' => esc_html__( 'Categories', 'raindrops' ), 'numberposts' => 4, //show count 'category' => 0, //category id 'orderby' => 'post_date', 'order' => 'DESC', 'raindrops_post_thumbnail' => true, 'raindrops_category_post_thumbnail_default_uri' => get_template_directory_uri() . '/images/dummy.png', ); } /** *  When you display the tagged entry list , please delete comment out of add_action( ). * * * * */ if ( !isset( $raindrops_bf_tag_posts ) ) { $raindrops_bf_tag_posts = 'y'; } if ( !isset( $raindrops_bf_tag_posts_setting ) ) { $raindrops_bf_tag_posts_setting = array( 'title' => esc_html__( 'Tags', 'raindrops' ), 'numberposts' => 4, //show count 'raindrops_post_thumbnail' => true, 'raindrops_category_post_thumbnail_default_uri' => get_template_directory_uri() . '/images/dummy.png', 'tax_query' => array( array( 'taxonomy' => 'post_tag', 'terms' => array( 'post-formats' ), //tag slug 'field' => 'slug', 'operator' => 'IN' ), 'relation' => 'AND' ) ); } if ( !isset( $raindrops_bf_display_title ) ) { /** * Display or not Site title * * value y then show other hide. * * */ $raindrops_bf_display_title = 'y'; } if ( !isset( $raindrops_bf_display_description ) ) { /** * Display or not Site description * * value y then show other hide. * * */ $raindrops_bf_display_description = 'y'; } if ( !isset( $raindrops_bf_display_header_image ) ) { /** * Display or not Site header image * * value y then show other hide. * * */ $raindrops_bf_display_header_image = 'y'; } if ( !isset( $raindrops_bf_display_nav_menus ) ) { /** * Display or not horizontal navigation * * value y then show other hide. * * */ $raindrops_bf_display_nav_menus = 'y'; } if ( !isset( $raindrops_bf_display_widget ) ) { /** * Display or not widget * * value y then show other hide. */ $raindrops_bf_display_widget = 'y'; } if ( !isset( $raindrops_bf_add_custom_text_extra_sidebar ) ) { /** * Add your html , line:211 $raindrops_bf_custom_text_extra_sidebar * * value y then show other hide. * */ $raindrops_bf_add_custom_text_extra_sidebar = ''; } if ( !isset( $raindrops_bf_add_custom_text_default_sidebar ) ) { /** * Add your html , line:194 $raindrops_bf_custom_text_default_sidebar * * value y then show other hide. * */ $raindrops_bf_add_custom_text_default_sidebar = ''; } if ( !isset( $raindrops_bf_remove_left_margin ) ) { /** * When you not need left margin ( blank default sidebar width ). * * value y then show other hide. * */ $raindrops_bf_remove_left_margin = ''; } if ( !isset( $raindrops_bf_remove_right_margin ) ) { /** * When you not need right margin ( blank extra sidebar width ). * * value y then show other hide. * */ $raindrops_bf_remove_right_margin = ''; } if ( !isset( $raindrops_bf_display_page_title ) ) { /** * Display or not page title * value y then show other hide. * */ $raindrops_bf_display_page_title = 'y'; } if ( !isset( $raindrops_bf_display_page_content ) ) { /** * Display or not page content * value y then show other hide. * */ $raindrops_bf_display_page_content = 'y'; } if ( !isset( $raindrops_bf_custom_text_default_sidebar ) ) { /** * custom_text_default_sidebar * * * */ $raindrops_bf_custom_text_default_sidebar = <<hello world SUBSTITUTION_CONTENT; } if ( !isset( $raindrops_bf_custom_text_extra_sidebar ) ) { /** * substitution extra sidebar content * */ $raindrops_bf_custom_text_extra_sidebar = <<hello world SUBSTITUTION_EXTRA_SIDEBAR; } /** Do not Edit * Functions and filters * * * */ if ( isset( $raindrops_bf_show_sticky_post ) && 'y' == $raindrops_bf_show_sticky_post ) { $raindrops_bf_sticky_post_args = apply_filters( 'raindrops_bf_sticky_post_args', $raindrops_bf_sticky_post_args ); } if ( isset( $raindrops_bf_recent_posts ) && 'y' == $raindrops_bf_recent_posts ) { add_action( 'raindrops_append_entry_content', 'raindrops_recent_posts' ); $raindrops_bf_recent_posts_setting = apply_filters( 'raindrops_bf_recent_posts_setting', $raindrops_bf_recent_posts_setting ); } if ( isset( $raindrops_bf_category_posts ) && 'y' == $raindrops_bf_category_posts ) { add_action( 'raindrops_append_entry_content', 'raindrops_category_posts' ); $raindrops_bf_category_posts_setting = apply_filters( 'raindrops_bf_category_posts_setting', $raindrops_bf_category_posts_setting ); } if ( isset( $raindrops_bf_tag_posts ) && 'y' == $raindrops_bf_tag_posts ) { add_action( 'raindrops_append_entry_content', 'raindrops_tag_posts' ); $raindrops_bf_tag_posts_setting = apply_filters( 'raindrops_bf_tag_posts_setting', $raindrops_bf_tag_posts_setting ); } if ( 'y' !== $raindrops_bf_display_title ) { add_filter( 'raindrops_site_title', '__return_null' ); } if ( 'y' !== $raindrops_bf_display_description ) { add_filter( 'raindrops_site_description', '__return_null' ); add_filter( 'raindrops_header_image_elements', 'raindrops_remove_header_text' ); } function raindrops_remove_header_text( $content ) { return preg_replace( '!]*>(.*)

!siu', '', $content ); } if ( 'y' !== $raindrops_bf_display_header_image ) { add_filter( 'raindrops_header_image_elements', '__return_null' ); add_filter( 'raindrops_header_image_home_url', '__return_null' ); } if ( 'y' !== $raindrops_bf_display_nav_menus ) { add_filter( 'raindrops_nav_menu_primary_html', '__return_null' ); } if ( 'y' !== $raindrops_bf_display_page_content ) { add_filter( 'raindrops_entry_content', '__return_null' ); } add_filter( 'raindrops_posted_in', '__return_null' ); add_filter( 'raindrops_posted_on', '__return_null' ); /* if ( $raindrops_display_wp_link_pages !== 'y' ) { add_filter( 'wp_link_pages_args', 'raindrops_wp_link_pages_filter' ); } */ function raindrops_wp_link_pages_filter( $args ) { $args['echo'] = false; return $args; } if ( 'y' !== $raindrops_bf_display_widget ) { add_filter( 'dynamic_sidebar', '__return_empty_array' ); add_filter( 'raindrops_sidebar_menus', '__return_null' ); } if ( 'y' == $raindrops_bf_add_custom_text_default_sidebar ) { add_action( 'raindrops_prepend_default_sidebar', 'raindrops_prepend_default_sidebar_filter' ); } if ( 'y' == $raindrops_bf_add_custom_text_extra_sidebar ) { add_action( 'raindrops_prepend_extra_sidebar', 'raindrops_prepend_default_sidebar_filter' ); } function raindrops_prepend_default_sidebar_filter() { global $raindrops_bf_custom_text_default_sidebar; echo $raindrops_bf_custom_text_default_sidebar; } function raindrops_prepend_extra_sidebar_filter() { global $raindrops_bf_custom_text_extra_sidebar; echo $raindrops_bf_custom_text_extra_sidebar; } if ( 'y' !== $raindrops_bf_display_page_title ) { add_filter( 'raindrops_entry_title', '__return_null' ); } if ( 'y' !== $raindrops_bf_remove_left_margin || 'y' == $raindrops_bf_add_custom_text_default_sidebar ) { $raindrops_devide_column_class = 'yui-b'; } else { $raindrops_devide_column_class = ''; } if ( 'y' !== $raindrops_bf_remove_left_margin || 'y' == $raindrops_bf_add_custom_text_extra_sidebar ) { $raindrops_devide_column_extra_class = 'yui-u'; } else { $raindrops_devide_column_extra_class = ''; } ?>
>
    have_posts() ) { $the_query->the_post(); $html = '
    '; printf( $html, get_the_ID(), join( ' ', get_post_class() ) ); raindrops_entry_title(); $html = '
    '; printf( $html, 'entry-content clearfix' ); raindrops_entry_content(); print( '
    ' ); } //end while wp_reset_postdata(); ?>