Multiple calls, shows only firlst
-
Hi guys,
i have custom design with 3 tabs ( Now, Week, All ) so i used 3 times wpp_get_mostpopular but with different parameters. The problem i have is that it only shows “daily” even if i have placed weekly and all in other two tabs.
So when day past and i get in my website i get “Sorry no data” in all 3 tabs. Here is my code.
<div role="tabpanel" class="tab-pane fade in active" id="now"> <h4>Most Read</h4> <?php wpp_get_mostpopular('range="daily&limit="5"&stats_views=0&wpp_start="<ol>"&wpp_end="</ol>"'); ?> </div> <div role="tabpanel" class="tab-pane fade" id="this-week"> <h4>Most Read</h4> <?php wpp_get_mostpopular('range="weekly&limit="5"&stats_views=0&wpp_start="<ol>"&wpp_end="</ol>"'); ?> </div> <div role="tabpanel" class="tab-pane fade" id="all-time"> <h4>Most Read</h4> <?php wpp_get_mostpopular('range="all&limit="5"&stats_views=0&wpp_start="<ol>"&wpp_end="</ol>"'); ?> </div>
Im using latest version of plugin. And just for a test i have placed widget in sidebar to show me all the time posts and i have 10 of them listed, so the data in database exist…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multiple calls, shows only firlst’ is closed to new replies.