Author Bio After Post

global $post; $author_id = $post->post_author; // Get author’s display name and biographical info $author_name = get_the_author_meta( ‘display_name’, $author_id ); $author_bio = get_the_author_meta( ‘description’, $author_id ); // Get author’s avatar $author_avatar = get_avatar( $author_id, 96 ); // Only display if author…Continue reading

Display Random Posts

$number_of_posts = 5; // Change this to the number of random posts you want to display. $title = ‘You might also like:’; // This is the title that will be displayed above the list of posts. $current_post_id = get_the_ID(); $args…Continue reading

EDCC Checkboxes Utility

jQuery(‘input[value=”All US States”]’).click(function() { if (this.checked==true) { jQuery(‘fieldset.us_states > div > div > div > input’).prop( “checked”, true ); } else { jQuery(‘fieldset.us_states > div > div > div > input’).prop( “checked”, false ); } }); jQuery(‘input[value^=”Midwest”]’).click(function() { jQuery(‘input[value=”Illinois”],input[value=”Wisconsin”],input[value=”Indiana”],input[value=”North Dakota”],input[value=”South…Continue reading

Display Related Posts by Category

global $post; if ( ! empty( $post ) ) { $categories = get_the_category( $post->ID ); if ( $categories ) { $category_ids = array(); foreach ( $categories as $category ) { $category_ids[] = $category->term_id; } $query_args = array( ‘category__in’ => $category_ids,…Continue reading