cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

How to ignore a list of post IDs with template-tags? #283

Closed atomtigerzoo closed 3 years ago

atomtigerzoo commented 3 years ago

Is there a way to ignore/exclude posts from the output? I have list of IDs of posts which I do not want to show in my listings. It would be great to have a parameter like 'exclude_ids' => [1,2,3,4] or something similiar.

Have a great day & thank you!

atomtigerzoo commented 3 years ago

My bad... I found the option third time reading the parameter page 🤦‍♀️ I looked for exclude and ignore inside the docs and here and couldn't find it.

It's the parameter pid I was looking for.

Usage for reference and others: 'pid' => '1,2,3' will exclude post IDs 1, 2 and 3.