Display Posts Shortcode – Exclude Posts

The Display Posts Shortcode plugin lets you display posts based on many different parameters. One parameter that is missing is the ability to exclude certain posts from your listing. If you add this code to your theme’s functions.php file or core functionality plugin, you will be able to use [[display_posts not_in="123,456"]] where 123 and 456 are the IDs of posts you’d like excluded.

Short URL: http://www.billerickson.net/?p=4091

Tagged: