Title: Bug &amp; feature request
Last modified: August 31, 2016

---

# Bug & feature request

 *  [Ahaenor](https://wordpress.org/support/users/ahaenor/)
 * (@ahaenor)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-feature-request-1/)
 * Hello!
 * Thanks for your plugin. We’re trying to use it and encountered a couple of issues:
 * 1. After plugin installation, I added a “Most viewed posts” widget. In widget
   settings, I see a PHP notice about var $new_instance is not defined in bawpv.
   php:194.
 * It makes sense – there are no $new_instance var in form() method of the widget.
   
   I fixed the problem by defining $order var like this: `$order = empty($instance['
   order']) ? 'DESC' : $instance['order'];`
 * 2. We’re definitely missing the feature to filter the markup of the most viewed
   posts list – both as a shortcode and a widget.
    I’d suggest adding 3 filters 
   for the markup: * a couple of filters for a posts list beginning and ending (
   argument is a WP_Post objects array), * one filter for a list element (it’s argument
   is a WP_Post object).
 * [https://wordpress.org/plugins/baw-post-views-count/](https://wordpress.org/plugins/baw-post-views-count/)

The topic ‘Bug & feature request’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/baw-post-views-count_ffffff.svg)
 * [Post Views Count (Support caching plugins!)](https://wordpress.org/plugins/baw-post-views-count/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/baw-post-views-count/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/baw-post-views-count/)
 * [Active Topics](https://wordpress.org/support/plugin/baw-post-views-count/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/baw-post-views-count/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/baw-post-views-count/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ahaenor](https://wordpress.org/support/users/ahaenor/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/bug-feature-request-1/)
 * Status: not resolved