How to Change Maximum-Posts-Per-Page Setting in Plugin
-
I’ve tried a bunch of responsive slider plugins without success. Only one is working for me: Responsive Slider. However, for the maximum number of slides in a slider, it uses the Maximum-Posts-Per-Page setting in the Reading page.
Is there a way to change that setting during the execution of the plugin and then set it back after the plugin is through?
In my naivete, I tried this at the beginning of the plugin’s PHP file:
$temppp = $posts_per_page; $posts_per_page = 10;
and at the bottom I put:
$posts_per_page = $temppp;
But I still got only two slides, the setting in Reading.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to Change Maximum-Posts-Per-Page Setting in Plugin’ is closed to new replies.