Custom WordPress shortcode function to display distinct content types in a sidebar widget