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

    (@juliobox)

    Hello

    You can do this with my plugin, using the “baw_count_views_count” hook.
    You have to grab the attachment ID (5th parameter of the hook) from your viewed posts, get its counter with a simple get_post_meta( $attach_id, ‘_count-views_all’, true ); (“all” if you need all views of course) then add it to the actual count (1st parameter of the hook) then return it.

    Do you understand ?

Viewing 1 replies (of 1 total)
  • The topic ‘HELP! How to show total views including attachments of a post?’ is closed to new replies.