include_post_type(); foreach ( $yarpp->get_taxonomies() as $taxonomy ) { $this->exclude( $taxonomy->name, sprintf( __( 'Disallow by %s:', 'yet-another-related-posts-plugin' ), ucwords( $taxonomy->labels->name ) ), $taxonomy->_builtin ); } $this->checkbox( 'show_pass_post', __( 'Display password protected posts', 'yet-another-related-posts-plugin' ) ); $this->checkbox( 'include_sticky_posts', __( 'Display sticky posts', 'yet-another-related-posts-plugin' ) ); $recent = yarpp_get_option( 'recent' ); if ( (bool) $recent ) { list($recent_number, $recent_units) = explode( ' ', $recent ); } else { $recent_number = 12; $recent_units = 'month'; } $recent_number_html = ''; $recent_units_html = ''; ?>
/>
checkbox( 'past_only', __( 'Display only posts older than current post', 'yet-another-related-posts-plugin' ) . "  " ); $this->checkbox( 'same_post_type', __( 'Limit to same post type', 'yet-another-related-posts-plugin' ) . "  ", '', array( 'option_value' => ! yarpp_get_option( 'cross_relate' ) ) ); ?>