Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count slides per page #67

Open
panchenkodv opened this issue Jun 4, 2015 · 3 comments
Open

Count slides per page #67

panchenkodv opened this issue Jun 4, 2015 · 3 comments

Comments

@panchenkodv
Copy link

In my WP read settings I have 5 posts per page. In this case Slider group show me only 5 slides in admin page and on the site. How can I show all slides without change read settings of WP

@chrisvanpatten
Copy link
Member

@PeterUpfold should we add 'posts_per_page' => -1 to the $query_args in the get_slides() method?

https://github.com/vanpattenmedia/total-slider/blob/305aaa3e217a9fff2ed5a154c5819b20f938a5bd/includes/class.total-slide-group.php#L208

@chrisvanpatten
Copy link
Member

@panchenkodv can you edit the file total-slider/class.total-slide-group.php and add a new line below line 217?

Here's how that looks by default:

            'meta_key'           => 'total_slider_meta_sequence',
        );

Here's what you should change it to:

            'meta_key'           => 'total_slider_meta_sequence',
            'posts_per_page'     => -1,
        );

Note the new line with the posts_per_page setting.

If that works for you, we'll get this added to the plugin code and push a new version!

@panchenkodv
Copy link
Author

Yes, it works for me! All sliders are shown in admin panel and on the site. Great thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants