• Resolved Ronald

    (@rottinger)


    I’m working on a new WordPress multisite setup for our intranet, and we’re using OceanWP as the basis (as this comes pretty close to what we’ve received as project requirements for layout and styling). I’ve also installed OceanWP Posts Slider as part of the setup.

    Is there a way to select multiple post types for the OceanWP Posts Slider (or is it something that is planned for the future)? I have a custom post type that I’d like to include in a slider, along with a standard post type, for a specific category, but there doesn’t appear to be any way to choose more than one.

    Really liking the layout and capabilities of OceanWP. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Amit Singh

    (@apprimit)

    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.

    Plugin Author Amit Singh

    (@apprimit)

    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.

    Plugin Author Amit Singh

    (@apprimit)

    Okay sure, we will look into this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Select Post Type in Post Slider’ is closed to new replies.