I would like to be able to select the Staff custom post types in the Pinnacle: Recent Posts widget, so it would only show Staff posts, with the little thumbnail of each Staff person’s featured image (a headshot). I want to put the Pinnacle: Recent Posts widget in the sidebar on each Staff post, so it would list all the other staff people, each with their own thumbnail, each linking to the staff post.
I found this function that let’s the custom post type “staff” show up in the Recent Posts widgets (Pinnacle & WordPress), but that just ADDS the Staff posts to all the other posts in the list. What I want is to have the choice to show ONLY the staff posts in one instance of this widget, while also being able to use the widget again (in another sidebar) to show ONLY posts from a different category.
I’m working with a Child Theme.
Is there some code I could add to my Child Theme’s function.php that would add the Custom Post Type as a selection, along with categories, to the Pinnacle: Recent Posts widget? Or is there a way to add the Staff Group taxonomy to the Category choices in your widget’s back-end form? Or could you give me the code for a modified version of your widget, with just the staff posts (or with that additional option) so I could add it to my Child Theme? (I tried to modify your widget myself but failed.)