Custom Default Avatar

/** * IMPORTANT: After activating this snippet you have to change the default avatar option in Settings » Discussion to “Custom Avatar” as defined below. */ add_filter( ‘avatar_defaults’, function( $avatar_defaults ) { $new_avatar_url = ‘https://wpcode.com/wp-content/uploads/2024/09/wpcode-avatar.png’; // Replace this with your…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