Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor slidervilla

    (@slidervilla)

    Hello,

    To add pages in Smooth Slider please go to edit page and from smooth slider post metabox check the chckbox “Add this post/page to” and then update the page.

    To diaply pages published with a private status in smooth slider you need to do some code changes. Edit the following file:

    wp-content/plugins/smooth-slider/slider_versions/smooth_1.php
    You need to modify the query at line no. 86 to following:

    $posts = $wpdb->get_results("SELECT b.* FROM $table_name a LEFT OUTER JOIN $post_table b ON a.post_id = b.ID WHERE (b.post_status = 'publish' OR b.post_status = 'private' OR (b.post_type='attachment' AND b.post_status = 'inherit')) AND a.slider_id = '$slider_id' ORDER BY ".$orderby." LIMIT $offset, $max_posts", OBJECT);

    After saving the file, private pages will start appearing in the slider.

    Thanks for your patience.

    Thread Starter crossticks

    (@crossticks)

    Thank you for this solution (even with a little bit late ;)) it works perfectly ….

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display privates posts in slider’ is closed to new replies.