• Resolved WPwebbouw

    (@wpwebbouw)


    I would like to have the possibility to let the plugin count views on pages, without them appearing in the widget. I see the most viewed posts list as a marketing tool to inspire visiters to read those posts. In the back end the counter serves as a simple monitor for the views of posts and pages. So I don’t have to check my Google Analytics to get a quick However, I don’t want pages to display in the widget.

    I think a simple checkbox “show pages in widget” on the settings page would suffice.

    http://wordpress.org/extend/plugins/baw-post-views-count/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Julio Potier

    (@juliobox)

    Hello
    haaa you made me laught ^^
    1 week ago the widget only worked for “posts”, i forgot to add the posts types settings.
    Now it includes all post types from settings and you want to, keep tracking of page count but not show it in widget XD
    I will add a filter hook for that ok ? This is too special, so for you, i’ll do this filter 😉
    See you

    Plugin Author Julio Potier

    (@juliobox)

    Added in 2.19.10, the filter name is “baw_count_views_widget_post_types”.
    So you can add this in your functions.php from theme:

    add_filter( 'baw_count_views_widget_post_types', 'special_post_types_for_bawmrp_widget' );
    function special_post_types_for_bawmrp_widget( $post_types )
    {
      return array( 'posts' );
    }

    Plugin Author Julio Potier

    (@juliobox)

    My bad:

    add_filter( 'baw_count_views_widget_post_types', 'special_post_types_for_bawmrp_widget' );
    function special_post_types_for_bawmrp_widget( $post_types )
    {
      return array( 'post' );
    }

    Thread Starter WPwebbouw

    (@wpwebbouw)

    Thank you!

    Thanks for this, it is just what I needed too.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature request: counting page views but exclude pages from the widget’ is closed to new replies.