Hello,
Try to add the below code to the functons.php file of the child theme. I have not tested it yet so please use it first on your dev site and let me know it works or not.
For the future updates, we will surely consider it.
function post_slider_add_post_type( $post_type ) {
$post_type[] = 'your custom post type';
return $post_type;
}
add_filter( 'ocean_metaboxes_post_types_scripts', 'post_slider_add_post_type' );
Thread Starter
Ronald
(@rottinger)
Amit,
Thank you for the quick response!
Just so you know, I added the code, but it resulted in the following error on the site:
Parse error: syntax error, unexpected ‘add_filter’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/wp-content/themes/oceanwp/functions.php on line 939
I’ve uncommented the code for now. However, I may not have been clear in what I was looking for.
What I’m actually wanting to do is, when I create a Post Slider, is select more than one Post Type in the slider settings. Right now, I can either select “Post”, “Events” or “My Library” as a Post type, but they are exclusive; I can only select one of them.
Again, thank you for your reply and your assistance.
Unfortunately, this feature is not available in the post slider plugin right now but we will consider your suggestion to add this feature in the future updates of the plugin.
Thread Starter
Ronald
(@rottinger)
Okay. Thank you very much for the reply. I’m looking forward to having this function included.
Okay sure, we will look into this.