Plugin Author
Ajay
(@ajay)
You can choose what post types to include under Settings > Posts list
https://ps.w.org/top-10/assets/screenshot-3.png?rev=1770116
Thread Starter
ashf
(@ashf)
Thank you.
I’d like to exclude certain post types from counting but displaying.
Is it possible?
Also metabox on the each post in those post type is unnessesary.
Plugin Author
Ajay
(@ajay)
Could you clarify what you mean on not counting but displaying?
Thread Starter
ashf
(@ashf)
I thought “Settings > Posts list” just exclude post types from being shown them on the popular post list.
Does it exclude them from being recorded(counted) in the database?
-
This reply was modified 5 years, 11 months ago by
ashf.
Plugin Author
Ajay
(@ajay)
You’re right on that – in order to stop the tracking you could potentially remove_action( 'wp_enqueue_scripts', 'tptn_enqueue_scripts', 99 ); by first checking if $post->post_type != 'somename'
https://github.com/WebberZone/top-10/blob/master/includes/tracker.php#L96
Thread Starter
ashf
(@ashf)
I see, would be nice if you could add a filter hook for it.
Also a filter to switch metabox visibility for each post type would be nice.
Plugin Author
Ajay
(@ajay)
@ashf,
I’m going to implement this in a future version
Plugin Author
Ajay
(@ajay)
I’ve filed this for a future version: https://github.com/WebberZone/top-10/issues/104
This is a few months away given how I rotate various plugin releases so will mark this resolved for now and the forum only tracks posts for a 2 month period.