Hi Ted!
If you’re trying to format the HTML output based in post ID being the same as the current post/page ID, then you could hook into the not-yet-documented wpp_post_class filter hook to assign a specific class to the LI tag if the condition is met:
function wp4654_wpp_post_class( $wpp_post_class, $post_id ){
// We want to do this only while viewing a post / page / custom post type
if ( is_single() ) {
$current_post_id = get_queried_object_id(); // we need to do it this way as the widget is probably outside the loop so get_the_ID() might not work as expected
if ( $current_post_id == $post_id ) {
$wpp_post_class .= ' your-class-here';
}
}
return $wpp_post_class;
}
add_filter( 'wpp_post_class', 'wp4654_wpp_post_class', 10, 2 );
The caveat is that this only works if you’re using the stock HTML markup. If you’re using any of the built-in ways to customize the HTML output of the widget, then you’ll need to hook into wpp_custom_html or wpp_post and apply the logic from above (with a few additional changes, of course) to achieve the same effect.
P. S.: I didn’t test this code but it should work as is.