'; // Display Date unless user has deactivated it via settings if ( true == $theme_options['meta_date'] ) : businesspersonal_meta_date(); endif; // Display Author unless user has deactivated it via settings if ( true == $theme_options['meta_author'] ) : businesspersonal_meta_author(); endif; // Display Categories unless user has deactivated it via settings if ( true == $theme_options['meta_category'] ) : businesspersonal_meta_category(); endif; // Display Author unless user has deactivated it via settings if ( true == $theme_options['meta_comments'] and comments_open() ) : businesspersonal_meta_comments(); endif; echo ''; endif; } // businesspersonal_entry_meta() endif; if ( ! function_exists( 'businesspersonal_meta_date' ) ): /** * Displays the post date */ function businesspersonal_meta_date() { $time_string = sprintf( '', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); echo '' . $time_string . ''; } // businesspersonal_meta_date() endif; if ( ! function_exists( 'businesspersonal_meta_author' ) ): /** * Displays the post author */ function businesspersonal_meta_author() { $author_string = sprintf( '', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( esc_html__( 'View all posts by %s', 'businesspersonal' ), get_the_author() ) ), esc_html( get_the_author() ) ); echo ' ' . $author_string . ''; } // businesspersonal_meta_author() endif; if ( ! function_exists( 'businesspersonal_meta_category' ) ): /** * Displays the post categories */ function businesspersonal_meta_category() { echo ' ' . get_the_category_list(' / '). ''; } // businesspersonal_meta_category() endif; if ( ! function_exists( 'businesspersonal_meta_comments' ) ): /** * Displays the post comments */ function businesspersonal_meta_comments() { echo ''; comments_popup_link( esc_html__( 'Leave a comment', 'businesspersonal' ), esc_html__( 'One comment', 'businesspersonal' ), esc_html__( '% comments', 'businesspersonal' ) ); echo ''; } // businesspersonal_meta_comments() endif; if ( ! function_exists( 'businesspersonal_entry_tags' ) ): /** * Displays the post tags on single post view */ function businesspersonal_entry_tags() { // Get Theme Options from Database $theme_options = businesspersonal_theme_options(); // Get Tags $tag_list = get_the_tag_list('', ''); // Display Tags if ( $tag_list && $theme_options['meta_tags'] ) : ?>
str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'next_text' => '»', 'prev_text' => '«', 'add_args' => false ) ); // Display the pagination if more than one page is found if ( $paginate_links ) : ?>
is_home && $query->is_main_query() ) { $theme_options = businesspersonal_theme_options(); $exclude_categories = $theme_options['exc_blog']; if ( ! empty( $exclude_categories ) ) { $cats = explode( ',', $exclude_categories ); $cats = array_filter( $cats, 'is_numeric' ); $string_exclude = ''; if ( ! empty( $cats ) ) { $string_exclude = '-' . implode( ',-', $cats); $query->set( 'cat', $string_exclude ); } } } return $query; } add_filter( 'pre_get_posts', 'businesspersonal_exclude_category_in_blog_page' ); /** * Displays credit link on footer line */ function businesspersonal_footer_text() { ?> WordPress', 'businessPersonal' ); ?>