Plugin Author
DaveE
(@dpe415)
Hi Matt,
Thanks for using the plugin! Unfortunately, there isn’t a way to exclude items this way. There are some hooks to allow you to code up your exclusion, if you are so inclined. Sorry!
Dave,
No problem. I hadn’t seen the availability of the hooks, so I appreciate you pointing me in the right direction.
This is what my particular function looks like, if it can help anyone else:
function exclude_flexible_posts($query_args) {
$query_args['post__not_in'] = array(2,6,15,37,122);
return $query_args;
}
add_filter('dpe_fpw_args', 'exclude_flexible_posts');
Plugin Author
DaveE
(@dpe415)
Great!
Glad you were able to get it working. One thing I noticed in your example is that you’re using add_action, but it should be add_filter.
Cheers!
Ah, yes. You’re correct. add_filter is proper. I have updated the code in my previous comment. Thank you!