so bacically I have a script for most popular posts on my blog, but I want to create a mini loop on the sidebar of a custom post type index listing the most popular 'photoshop tutorials' for example.
I created a custom index and single page for each post type, but now I want to create my dynamic sidebar.
Here is my most popular script:
But how would I be able to filter it for a custom post type?
Please and thank you :D