Plugin Author
Ajay
(@ajay)
Yes – That would work. Note that would only apply if you reset the options – This will not automatically display options in the settings page.
That’s something I will be releasing in the next major version of the plugin
Sorry, I cannot make it work.
Adding the crp_default_options filter doesn’t seem to have any effect. Even if I change something that is already in the $crp_settings array, (like $crp_settings['random_order'] = true; return $crp_settings;).
By “..reset the options..” you mean to click on the “Default Options” button on the bottom of the plugin settings page?
A little help here would be very much appreciated!
Never mind, I didn’t use the add_filter('crp_default_options') hook.
I used excluded_categories option in the shortcode to obtain a similar effect.
Something that I stumbled over with this method, is that because I’m using the crp_custom_template filter, I had to convert the exploded array of categories to int values, in order to work. Like that:
$exclude_categories = array_map( 'intval', explode( ',', $args['exclude_categories']));