With the general posts widget, you can place list of posts into your widget areas based on any query parameters WP QUERY. You can generate the latest posts, popular posts, post types, filter by category or other taxonomy, filter by post meta, etc.
This filter is within the loop that prints the 's $thisprint is the final string containing all the html including the opening and closing tags.
In order to edit the output of the loop, you would want to edit your my Func function to something else, utilizing the $post variable.
The html is the $readingon and the $instance provides you with all the instance params you supplied in the widget interface. my Func {return $finalprint }.
This supplies the list with the container divs and everything else $openprint contains the div with the id and class supplied by the interface.
It also includes the openieng tag $closeprint contains all the closure tags for the $openprint as well as the readmore link text $toprint contains everything in between $wpQuery contains WP Query instance.
There is workaround to add the action for register sidebar, get the sidebar object and then adjust the $wp registered sidebars global, but order to do this, you would have to know the order id number of the widget.
Title, Id of the container, Class of the container, Choose post type, Posts per page, display tab ...
It's link that is added after the list that directs the user to the page that contains list of the parameters set for the widget.
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more